Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,6 @@ topics = """
|
|
| 98 |
|
| 99 |
|
| 100 |
#chatbot = gr.ChatInterface(respond, type = "messages", theme)
|
| 101 |
-
|
| 102 |
with gr.Blocks(theme=theme) as demo:
|
| 103 |
gr.Image(value="scooby.png", height=450, width = 1536, show_label=False, show_share_button = False, show_download_button = False, container=False)
|
| 104 |
gr.Markdown(welcome_message)
|
|
@@ -109,9 +108,9 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 109 |
with gr.TabItem("Main Page"):
|
| 110 |
with gr.Row():
|
| 111 |
text_input = gr.Textbox(label="Ask Scooby a question about your pet")
|
| 112 |
-
image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
|
| 113 |
output = gr.Textbox(label="Scooby's Answer")
|
| 114 |
-
|
| 115 |
submit_btn.click(fn=respond, inputs=text_input, outputs=output)
|
| 116 |
with gr.TabItem("🍲 Recipes"):
|
| 117 |
gr.Markdown("Ask Scooby about recipes here!")
|
|
@@ -121,12 +120,6 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
-
submit_btn.click(fn=respond, inputs=text_input, outputs=output)
|
| 125 |
-
#inputs=[text_input, image_input can be added once error fixed
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
|
| 131 |
demo.launch(debug=True)
|
| 132 |
|
|
|
|
| 98 |
|
| 99 |
|
| 100 |
#chatbot = gr.ChatInterface(respond, type = "messages", theme)
|
|
|
|
| 101 |
with gr.Blocks(theme=theme) as demo:
|
| 102 |
gr.Image(value="scooby.png", height=450, width = 1536, show_label=False, show_share_button = False, show_download_button = False, container=False)
|
| 103 |
gr.Markdown(welcome_message)
|
|
|
|
| 108 |
with gr.TabItem("Main Page"):
|
| 109 |
with gr.Row():
|
| 110 |
text_input = gr.Textbox(label="Ask Scooby a question about your pet")
|
| 111 |
+
# image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
|
| 112 |
output = gr.Textbox(label="Scooby's Answer")
|
| 113 |
+
submit_btn = gr.Button("Ask Scooby")
|
| 114 |
submit_btn.click(fn=respond, inputs=text_input, outputs=output)
|
| 115 |
with gr.TabItem("🍲 Recipes"):
|
| 116 |
gr.Markdown("Ask Scooby about recipes here!")
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
demo.launch(debug=True)
|
| 125 |
|