epochs-demos commited on
Commit
e457a77
·
1 Parent(s): f44449f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -119,6 +119,8 @@ def main(args):
119
  # share=False, # should we create a (temporary) public link on https://gradio.app?
120
  # favicon_path=FAVICON, # what icon should we display in the address bar?
121
  )
 
 
122
  def make_frontend(
123
  fn: Callable[[Image], str], flagging: bool = False, gantry: bool = False, app_name: str = "fashion-aggregator"
124
  ):
@@ -126,13 +128,13 @@ def make_frontend(
126
 
127
  allow_flagging = "never"
128
 
129
- # Build a customized browser interface to a Python function
130
  frontend = gr.Interface(
131
  fn=fn,
132
- outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
133
  inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
 
134
  title="<span class='title-text'>Fashion Aggregator</span><img src='{logo}' class='logo-image'>".format(logo=LOGO),
135
- thumbnail=LOGO,
136
  description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
137
  cache_examples=False,
138
  allow_flagging=allow_flagging,
@@ -174,7 +176,13 @@ def make_frontend(
174
  <body>
175
  {{interface_html}}
176
  <div class="disclaimer">
177
- This web app is for demonstration purposes only and not intended for commercial use.
 
 
 
 
 
 
178
  </div>
179
  </body>
180
  </html>
 
119
  # share=False, # should we create a (temporary) public link on https://gradio.app?
120
  # favicon_path=FAVICON, # what icon should we display in the address bar?
121
  )
122
+
123
+
124
  def make_frontend(
125
  fn: Callable[[Image], str], flagging: bool = False, gantry: bool = False, app_name: str = "fashion-aggregator"
126
  ):
 
128
 
129
  allow_flagging = "never"
130
 
131
+ # Create a Blocks interface
132
  frontend = gr.Interface(
133
  fn=fn,
 
134
  inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
135
+ outputs=gr.outputs.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
136
  title="<span class='title-text'>Fashion Aggregator</span><img src='{logo}' class='logo-image'>".format(logo=LOGO),
137
+ thumbnail=FAVICON,
138
  description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
139
  cache_examples=False,
140
  allow_flagging=allow_flagging,
 
176
  <body>
177
  {{interface_html}}
178
  <div class="disclaimer">
179
+ <gr-blocks>
180
+ <gr-row>
181
+ <gr-column>
182
+ <span>Disclaimer: This web app is for demonstration purposes only and not intended for commercial use.</span>
183
+ </gr-column>
184
+ </gr-row>
185
+ </gr-blocks>
186
  </div>
187
  </body>
188
  </html>