Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,7 +66,7 @@ block = gr.Blocks(theme=gr.themes.Glass(primary_hue="slate"))
|
|
| 66 |
with block:
|
| 67 |
gr.Markdown("""<h1><center>Visual Explorer - Ask and Learn about Images</center></h1> """)
|
| 68 |
with gr.Row():
|
| 69 |
-
with gr.Column(
|
| 70 |
img_input = gr.Image(type="filepath", label="Upload Image")
|
| 71 |
api_input = gr.Textbox(label= "Enter Api-key")
|
| 72 |
upload_button = gr.Button(value="Upload & Start Chat", interactive=True, variant="primary")
|
|
@@ -78,4 +78,4 @@ with block:
|
|
| 78 |
upload_button.click(message_and_history, inputs=[img_input, message, state, api_input], outputs=[chatbot, state])
|
| 79 |
message.submit(message_and_history, inputs=[img_input, message, state, api_input], outputs=[chatbot, state])
|
| 80 |
message.submit(lambda: None, None, message, queue=False)
|
| 81 |
-
block.launch(
|
|
|
|
| 66 |
with block:
|
| 67 |
gr.Markdown("""<h1><center>Visual Explorer - Ask and Learn about Images</center></h1> """)
|
| 68 |
with gr.Row():
|
| 69 |
+
with gr.Column():
|
| 70 |
img_input = gr.Image(type="filepath", label="Upload Image")
|
| 71 |
api_input = gr.Textbox(label= "Enter Api-key")
|
| 72 |
upload_button = gr.Button(value="Upload & Start Chat", interactive=True, variant="primary")
|
|
|
|
| 78 |
upload_button.click(message_and_history, inputs=[img_input, message, state, api_input], outputs=[chatbot, state])
|
| 79 |
message.submit(message_and_history, inputs=[img_input, message, state, api_input], outputs=[chatbot, state])
|
| 80 |
message.submit(lambda: None, None, message, queue=False)
|
| 81 |
+
block.launch()
|