Spaces:
Runtime error
Runtime error
Commit
·
f439b59
1
Parent(s):
f87e37d
correct QAQuery issue (no return)
Browse files
app.py
CHANGED
|
@@ -151,7 +151,8 @@ def QAQuery(question: str):
|
|
| 151 |
print("Answer:", res['result'])
|
| 152 |
print("-" * 20)
|
| 153 |
print("Source:", res['source_documents'])
|
| 154 |
-
|
|
|
|
| 155 |
|
| 156 |
# Used to complete content
|
| 157 |
def completeText(Text):
|
|
|
|
| 151 |
print("Answer:", res['result'])
|
| 152 |
print("-" * 20)
|
| 153 |
print("Source:", res['source_documents'])
|
| 154 |
+
response = res['result']
|
| 155 |
+
return response
|
| 156 |
|
| 157 |
# Used to complete content
|
| 158 |
def completeText(Text):
|