Update app.py
Browse files
app.py
CHANGED
@@ -122,12 +122,13 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
122 |
with gr.Row():
|
123 |
with gr.Column():
|
124 |
gr.Markdown(topics) # Show the topics on the left side
|
125 |
-
with gr.Row():
|
126 |
-
with gr.Column():
|
127 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
128 |
answer = gr.Textbox(label="Sustainabot Response", placeholder="Sustainabot will respond here...", interactive=False, lines=10)
|
129 |
submit_button = gr.Button("Submit")
|
130 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
|
|
|
|
|
|
131 |
|
132 |
# Launch the Gradio app to allow user interaction
|
133 |
demo.launch(share=True)
|
|
|
122 |
with gr.Row():
|
123 |
with gr.Column():
|
124 |
gr.Markdown(topics) # Show the topics on the left side
|
|
|
|
|
125 |
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
126 |
answer = gr.Textbox(label="Sustainabot Response", placeholder="Sustainabot will respond here...", interactive=False, lines=10)
|
127 |
submit_button = gr.Button("Submit")
|
128 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
129 |
+
# with gr.Row():
|
130 |
+
# with gr.Column():
|
131 |
+
|
132 |
|
133 |
# Launch the Gradio app to allow user interaction
|
134 |
demo.launch(share=True)
|