Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,17 +116,17 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
| 116 |
with gr.Row():
|
| 117 |
with gr.Column():
|
| 118 |
gr.Markdown(topics) # Show the topics on the left side
|
| 119 |
-
with gr.Row():
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
|
| 131 |
|
| 132 |
# Launch the Gradio app to allow user interaction
|
|
|
|
| 116 |
with gr.Row():
|
| 117 |
with gr.Column():
|
| 118 |
gr.Markdown(topics) # Show the topics on the left side
|
| 119 |
+
# with gr.Row():
|
| 120 |
+
# with gr.Column():
|
| 121 |
+
# question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
| 122 |
+
# answer = gr.Textbox(label="RotBot Response", placeholder="RotBot will respond here...", interactive=False, lines=10)
|
| 123 |
+
# submit_button = gr.Button("Submit")
|
| 124 |
+
# submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
| 125 |
+
chatbot = gr.ChatInterface(
|
| 126 |
+
fn=query_model,
|
| 127 |
+
examples=[{"text": "hello"}, {"text": "bruh"}],
|
| 128 |
+
multimodal=False,
|
| 129 |
+
)
|
| 130 |
|
| 131 |
|
| 132 |
# Launch the Gradio app to allow user interaction
|