kellydoesstuff commited on
Commit
9a25b62
·
verified ·
1 Parent(s): 0b9e916

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
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
- 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
 
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