AI-RESEARCHER-2024
commited on
Commit
•
9e5edff
1
Parent(s):
f37e98d
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def process_query(
|
|
58 |
# Get response from the query engine
|
59 |
response = query_engine.query(
|
60 |
message,
|
61 |
-
streaming=True
|
62 |
)
|
63 |
return str(response)
|
64 |
except Exception as e:
|
@@ -69,10 +69,6 @@ demo = gr.ChatInterface(
|
|
69 |
process_query,
|
70 |
title="PDF Question Answering with RAG + Llama",
|
71 |
description="Ask questions about the content of the loaded PDF documents using Llama model",
|
72 |
-
examples=[
|
73 |
-
["What is Computer"],
|
74 |
-
],
|
75 |
-
cache_examples=False,
|
76 |
#undo_btn="Delete Previous",
|
77 |
#clear_btn="Clear",
|
78 |
)
|
|
|
58 |
# Get response from the query engine
|
59 |
response = query_engine.query(
|
60 |
message,
|
61 |
+
#streaming=True
|
62 |
)
|
63 |
return str(response)
|
64 |
except Exception as e:
|
|
|
69 |
process_query,
|
70 |
title="PDF Question Answering with RAG + Llama",
|
71 |
description="Ask questions about the content of the loaded PDF documents using Llama model",
|
|
|
|
|
|
|
|
|
72 |
#undo_btn="Delete Previous",
|
73 |
#clear_btn="Clear",
|
74 |
)
|