Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,8 @@ class DemoRAG:
|
|
| 26 |
self.doc_count = len(self.documents)
|
| 27 |
return f"β
Processed {processed} documents successfully!\n\nπ Total documents: {self.doc_count}"
|
| 28 |
|
| 29 |
-
def answer_question(self,
|
|
|
|
| 30 |
if not question.strip():
|
| 31 |
return "Please ask a question."
|
| 32 |
|
|
@@ -102,10 +103,7 @@ with gr.Blocks(title="Enterprise RAG System", theme=gr.themes.Soft()) as demo:
|
|
| 102 |
"Can you summarize the key points?",
|
| 103 |
"What does it say about [your topic]?",
|
| 104 |
"Find information about [specific term]"
|
| 105 |
-
]
|
| 106 |
-
retry_btn="π Retry",
|
| 107 |
-
undo_btn="βΆ Undo",
|
| 108 |
-
clear_btn="ποΈ Clear"
|
| 109 |
)
|
| 110 |
|
| 111 |
# Sidebar
|
|
|
|
| 26 |
self.doc_count = len(self.documents)
|
| 27 |
return f"β
Processed {processed} documents successfully!\n\nπ Total documents: {self.doc_count}"
|
| 28 |
|
| 29 |
+
def answer_question(self, message, history):
|
| 30 |
+
question = message
|
| 31 |
if not question.strip():
|
| 32 |
return "Please ask a question."
|
| 33 |
|
|
|
|
| 103 |
"Can you summarize the key points?",
|
| 104 |
"What does it say about [your topic]?",
|
| 105 |
"Find information about [specific term]"
|
| 106 |
+
]
|
|
|
|
|
|
|
|
|
|
| 107 |
)
|
| 108 |
|
| 109 |
# Sidebar
|