Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,7 +145,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
| 145 |
|
| 146 |
# callback.setup([chatbot], "flagged_data_points")
|
| 147 |
# flag_btn.click(lambda *args: callback.flag(args), [chatbot], None, preprocess=False)
|
| 148 |
-
gr.Interface(
|
| 149 |
fn=query_model,
|
| 150 |
inputs=gr.Textbox(label="Your question", placeholder="What do you want to ask about?"),
|
| 151 |
outputs=gr.Textbox(label="RotBot Response", placeholder="RotBot will respond here...", interactive=False, lines=10),
|
|
|
|
| 145 |
|
| 146 |
# callback.setup([chatbot], "flagged_data_points")
|
| 147 |
# flag_btn.click(lambda *args: callback.flag(args), [chatbot], None, preprocess=False)
|
| 148 |
+
chatbot = gr.Interface(
|
| 149 |
fn=query_model,
|
| 150 |
inputs=gr.Textbox(label="Your question", placeholder="What do you want to ask about?"),
|
| 151 |
outputs=gr.Textbox(label="RotBot Response", placeholder="RotBot will respond here...", interactive=False, lines=10),
|