Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,9 @@ with gr.Blocks(theme=gr.themes.Citrus()) as demo:
|
|
36 |
#an image input
|
37 |
image=gr.Image(type="pil", label="upload an immage")
|
38 |
prompt = gr.Textbox(label="What would you like to know about this picture?",scale=1)
|
|
|
39 |
describe_btn = gr.Button("Describe the image",scale=1)
|
40 |
output = gr.Textbox(label="Description",scale=1)
|
41 |
-
with gr.Column():
|
42 |
#sending two inputs to imageDescription function
|
43 |
describe_btn.click(fn=imageDescription, inputs=[image, prompt], outputs=output)
|
44 |
demo.launch(debug=True)
|
|
|
36 |
#an image input
|
37 |
image=gr.Image(type="pil", label="upload an immage")
|
38 |
prompt = gr.Textbox(label="What would you like to know about this picture?",scale=1)
|
39 |
+
with gr.Column():
|
40 |
describe_btn = gr.Button("Describe the image",scale=1)
|
41 |
output = gr.Textbox(label="Description",scale=1)
|
|
|
42 |
#sending two inputs to imageDescription function
|
43 |
describe_btn.click(fn=imageDescription, inputs=[image, prompt], outputs=output)
|
44 |
demo.launch(debug=True)
|