Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -399,6 +399,7 @@ def rag_respond(message, history):
|
|
| 399 |
return "Please enter a question."
|
| 400 |
|
| 401 |
return rag_index.answer(str(message))
|
|
|
|
| 402 |
|
| 403 |
|
| 404 |
# Build interface
|
|
@@ -426,14 +427,11 @@ chat = gr.ChatInterface(
|
|
| 426 |
title=CONFIG["client"]["name"],
|
| 427 |
description=description,
|
| 428 |
examples=examples if examples else None,
|
| 429 |
-
cache_examples=False,
|
| 430 |
-
retry_btn="🔄 Retry",
|
| 431 |
-
undo_btn="↩️ Undo",
|
| 432 |
-
clear_btn="🗑️ Clear",
|
| 433 |
)
|
| 434 |
|
| 435 |
|
| 436 |
|
|
|
|
| 437 |
if __name__ == "__main__":
|
| 438 |
port = int(os.environ.get("PORT", 7860))
|
| 439 |
chat.launch(
|
|
|
|
| 399 |
return "Please enter a question."
|
| 400 |
|
| 401 |
return rag_index.answer(str(message))
|
| 402 |
+
|
| 403 |
|
| 404 |
|
| 405 |
# Build interface
|
|
|
|
| 427 |
title=CONFIG["client"]["name"],
|
| 428 |
description=description,
|
| 429 |
examples=examples if examples else None,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 430 |
)
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
+
|
| 435 |
if __name__ == "__main__":
|
| 436 |
port = int(os.environ.get("PORT", 7860))
|
| 437 |
chat.launch(
|