Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -129,17 +129,11 @@ with gr.Blocks(css=css) as demo:
|
|
129 |
with gr.Column():
|
130 |
image_in = gr.Image(label="Image input", type="filepath", elem_id="image-in")
|
131 |
|
132 |
-
submit_btn = gr.Button('
|
133 |
with gr.Column():
|
134 |
#caption = gr.Textbox(label="Generated Caption")
|
135 |
fragrance = gr.Textbox(label="generated Fragrance", elem_id="fragrance")
|
136 |
-
|
137 |
-
gr.Examples(examples=[["./examples/crabby.png", "Children"],["./examples/hopper.jpeg", "Adult"]],
|
138 |
-
fn=infer,
|
139 |
-
inputs=[image_in],
|
140 |
-
outputs=[fragrance],
|
141 |
-
cache_examples=False
|
142 |
-
)
|
143 |
|
144 |
submit_btn.click(fn=infer, inputs=[image_in], outputs=[fragrance])
|
145 |
|
|
|
129 |
with gr.Column():
|
130 |
image_in = gr.Image(label="Image input", type="filepath", elem_id="image-in")
|
131 |
|
132 |
+
submit_btn = gr.Button('Give me a Fragrance')
|
133 |
with gr.Column():
|
134 |
#caption = gr.Textbox(label="Generated Caption")
|
135 |
fragrance = gr.Textbox(label="generated Fragrance", elem_id="fragrance")
|
136 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
submit_btn.click(fn=infer, inputs=[image_in], outputs=[fragrance])
|
139 |
|