Update app.py
Browse files
app.py
CHANGED
@@ -159,19 +159,20 @@ with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
|
|
159 |
|
160 |
with gr.Tab("Chatbot"):
|
161 |
with gr.Row():
|
162 |
-
gr.
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
175 |
|
176 |
# Launch the Gradio app
|
177 |
demo.launch(share=True)
|
|
|
159 |
|
160 |
with gr.Tab("Chatbot"):
|
161 |
with gr.Row():
|
162 |
+
with gr.Column(scale=2)
|
163 |
+
gr.ChatInterface(
|
164 |
+
fn=generate_response,
|
165 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
166 |
+
examples=examples_questions,
|
167 |
+
additional_inputs=additional_inputs,
|
168 |
+
cache_examples=False,
|
169 |
+
)
|
170 |
+
with gr.Column(scale=2)
|
171 |
+
relevant_info = gr.Textbox(
|
172 |
+
label="Retrieved Information",
|
173 |
+
interactive=False,
|
174 |
+
lines=20,
|
175 |
+
)
|
176 |
|
177 |
# Launch the Gradio app
|
178 |
demo.launch(share=True)
|