Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,6 @@ welcome_message = """
|
|
| 114 |
"""
|
| 115 |
|
| 116 |
topics = """
|
| 117 |
-
### Welcome to GreenGuide!
|
| 118 |
## Feel free to ask me anything about how to sort your trash!
|
| 119 |
- Prescription bottles
|
| 120 |
- Soft plastic
|
|
@@ -134,8 +133,8 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
| 134 |
gr.Markdown(topics) # Show the topics on the left side
|
| 135 |
with gr.Row():
|
| 136 |
with gr.Column():
|
| 137 |
-
question = gr.Textbox(label="Your question", placeholder="
|
| 138 |
-
answer = gr.Textbox(label="
|
| 139 |
submit_button = gr.Button("Submit")
|
| 140 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 141 |
|
|
|
|
| 114 |
"""
|
| 115 |
|
| 116 |
topics = """
|
|
|
|
| 117 |
## Feel free to ask me anything about how to sort your trash!
|
| 118 |
- Prescription bottles
|
| 119 |
- Soft plastic
|
|
|
|
| 133 |
gr.Markdown(topics) # Show the topics on the left side
|
| 134 |
with gr.Row():
|
| 135 |
with gr.Column():
|
| 136 |
+
question = gr.Textbox(label="Your question", placeholder="Which type of trash do you want to ask about?")
|
| 137 |
+
answer = gr.Textbox(label="GreenGuide Response", placeholder="GreenGuide will respond here...", interactive=False, lines=10)
|
| 138 |
submit_button = gr.Button("Submit")
|
| 139 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 140 |
|