epochs-demos commited on
Commit
b5c918b
·
1 Parent(s): 4628cef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -29,7 +29,7 @@ logging.basicConfig(level=logging.INFO)
29
  DEFAULT_APPLICATION_NAME = "fashion-aggregator"
30
 
31
  APP_DIR = Path(__file__).resolve().parent # what is the directory for this application?
32
- FAVICON = APP_DIR / "t-shirt_1f455.png" # path to a small image for display in browser tab and social media
33
  README = APP_DIR / "README.md" # path to an app readme file in HTML/markdown
34
 
35
  DEFAULT_PORT = 11700
@@ -131,33 +131,33 @@ def make_frontend(
131
  textbox = gr.components.Textbox(label="Item Description")
132
  gallery = gr.Gallery(label="Relevant Items", examples_per_row=4, show_labels=True)
133
 
134
- # Build a customized browser interface to a Python function
135
- # frontend = gr.Interface(
136
- # fn=fn,
137
- # outputs=gr.outputs.Group([gr.outputs.HTML(""), gallery]),
138
- # inputs=gr.inputs.Group([textbox]),
139
- # title="Fashion Aggregator", # Update the title to a more descriptive name
140
- # thumbnail="./1001epochs.png", # Replace with the path to your company logo image
141
- # description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
142
- # cache_examples=False,
143
- # allow_flagging=allow_flagging,
144
- # flagging_options=["incorrect", "offensive", "other"],
145
- # )
146
-
147
-
148
  # Build a customized browser interface to a Python function
149
  frontend = gr.Interface(
150
  fn=fn,
151
- outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
152
- inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
153
- title="Fashion Aggregator",
154
- thumbnail=FAVICON,
155
  description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
156
  cache_examples=False,
157
  allow_flagging=allow_flagging,
158
  flagging_options=["incorrect", "offensive", "other"],
159
  )
160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  # Customize the HTML template to enhance the design and layout
162
  frontend.template = "gradio/custom.html"
163
 
 
29
  DEFAULT_APPLICATION_NAME = "fashion-aggregator"
30
 
31
  APP_DIR = Path(__file__).resolve().parent # what is the directory for this application?
32
+ FAVICON = APP_DIR / "1001epochs.png" # path to a small image for display in browser tab and social media
33
  README = APP_DIR / "README.md" # path to an app readme file in HTML/markdown
34
 
35
  DEFAULT_PORT = 11700
 
131
  textbox = gr.components.Textbox(label="Item Description")
132
  gallery = gr.Gallery(label="Relevant Items", examples_per_row=4, show_labels=True)
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  # Build a customized browser interface to a Python function
135
  frontend = gr.Interface(
136
  fn=fn,
137
+ outputs=gr.outputs.Group([gr.outputs.HTML(""), gallery]),
138
+ inputs=gr.inputs.Group([textbox]),
139
+ title="Fashion Aggregator", # Update the title to a more descriptive name
140
+ thumbnail="./1001epochs.png", # Replace with the path to your company logo image
141
  description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
142
  cache_examples=False,
143
  allow_flagging=allow_flagging,
144
  flagging_options=["incorrect", "offensive", "other"],
145
  )
146
 
147
+
148
+ # # Build a customized browser interface to a Python function
149
+ # frontend = gr.Interface(
150
+ # fn=fn,
151
+ # outputs=gr.Gallery(label="Relevant Items", show_labels=True, label_position="below"),
152
+ # inputs=gr.inputs.Textbox(label="Item Description", placeholder="Enter item description here"),
153
+ # title="Fashion Aggregator",
154
+ # thumbnail=FAVICON,
155
+ # description="Discover your perfect apparel effortlessly. Simply describe what you're looking for!",
156
+ # cache_examples=False,
157
+ # allow_flagging=allow_flagging,
158
+ # flagging_options=["incorrect", "offensive", "other"],
159
+ # )
160
+
161
  # Customize the HTML template to enhance the design and layout
162
  frontend.template = "gradio/custom.html"
163