JimmyBhoy commited on
Commit
0b33060
Β·
verified Β·
1 Parent(s): 77c7c5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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, question, history):
 
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