Spaces:
Sleeping
Sleeping
Pranjal Gupta
commited on
Commit
·
fd7e9f9
1
Parent(s):
1591091
remove the dumy doc
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def gradio_rag_wrapper(message, history):
|
|
| 157 |
|
| 158 |
rag_history.append({"question": user_text, "answer": bot_msg})
|
| 159 |
|
| 160 |
-
docId = "
|
| 161 |
response = retrievingReponse(docId, text_query, rag_history)
|
| 162 |
|
| 163 |
return response
|
|
@@ -172,5 +172,6 @@ demo = gr.ChatInterface(
|
|
| 172 |
)
|
| 173 |
|
| 174 |
if __name__ == "__main__":
|
|
|
|
| 175 |
|
| 176 |
demo.launch()
|
|
|
|
| 157 |
|
| 158 |
rag_history.append({"question": user_text, "answer": bot_msg})
|
| 159 |
|
| 160 |
+
docId = "42" # Use the docId from the uploaded file
|
| 161 |
response = retrievingReponse(docId, text_query, rag_history)
|
| 162 |
|
| 163 |
return response
|
|
|
|
| 172 |
)
|
| 173 |
|
| 174 |
if __name__ == "__main__":
|
| 175 |
+
# Create a dummy doc for initial testing if no PDF is uploaded
|
| 176 |
|
| 177 |
demo.launch()
|