Update app.py
Browse files
app.py
CHANGED
|
@@ -280,15 +280,15 @@ with gr.Blocks(title="Enhanced RAG Chatbot") as demo:
|
|
| 280 |
download_file = gr.File(label="Download")
|
| 281 |
|
| 282 |
with gr.Column(scale=2):
|
| 283 |
-
# ChatInterface
|
| 284 |
chat_interface = gr.ChatInterface(
|
| 285 |
fn=chat,
|
| 286 |
chatbot=gr.Chatbot(height=500, label="Conversation"),
|
| 287 |
-
textbox=gr.Textbox(
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
)
|
| 293 |
|
| 294 |
# Process files
|
|
|
|
| 280 |
download_file = gr.File(label="Download")
|
| 281 |
|
| 282 |
with gr.Column(scale=2):
|
| 283 |
+
# Simplified ChatInterface compatible with Gradio 4.44.1
|
| 284 |
chat_interface = gr.ChatInterface(
|
| 285 |
fn=chat,
|
| 286 |
chatbot=gr.Chatbot(height=500, label="Conversation"),
|
| 287 |
+
textbox=gr.Textbox(
|
| 288 |
+
label="Ask a question",
|
| 289 |
+
placeholder="Type your question here...",
|
| 290 |
+
lines=2
|
| 291 |
+
)
|
| 292 |
)
|
| 293 |
|
| 294 |
# Process files
|