Update app.py
Browse files
app.py
CHANGED
@@ -162,6 +162,12 @@ with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
|
|
162 |
|
163 |
with gr.Tab("Chatbot"):
|
164 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
with gr.Column():
|
166 |
gr.ChatInterface(
|
167 |
fn=generate_response,
|
@@ -171,12 +177,7 @@ with gr.Blocks(theme="Nymbo/Alyx_Theme") as demo:
|
|
171 |
additional_outputs=[relevant_info],
|
172 |
cache_examples=False,
|
173 |
)
|
174 |
-
|
175 |
-
relevant_info = gr.Textbox(
|
176 |
-
label="Retrieved Information",
|
177 |
-
interactive=False,
|
178 |
-
lines=20,
|
179 |
-
)
|
180 |
|
181 |
# Launch the Gradio app
|
182 |
demo.launch(share=True)
|
|
|
162 |
|
163 |
with gr.Tab("Chatbot"):
|
164 |
with gr.Row():
|
165 |
+
with gr.Column():
|
166 |
+
relevant_info = gr.Textbox(
|
167 |
+
label="Retrieved Information",
|
168 |
+
interactive=False,
|
169 |
+
lines=20,
|
170 |
+
)
|
171 |
with gr.Column():
|
172 |
gr.ChatInterface(
|
173 |
fn=generate_response,
|
|
|
177 |
additional_outputs=[relevant_info],
|
178 |
cache_examples=False,
|
179 |
)
|
180 |
+
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
# Launch the Gradio app
|
183 |
demo.launch(share=True)
|