Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,10 @@ def answer_predefined_questions(document_type):
|
|
108 |
while i < len(queryList):
|
109 |
question = queryList[i]
|
110 |
field = fieldList[i]
|
111 |
-
|
|
|
|
|
|
|
112 |
return response
|
113 |
|
114 |
|
|
|
108 |
while i < len(queryList):
|
109 |
question = queryList[i]
|
110 |
field = fieldList[i]
|
111 |
+
answer = pdf_qa.run(question)
|
112 |
+
response += "Field Name:", field
|
113 |
+
response += "; Question sent to gpt-4: ", question
|
114 |
+
response += "; Response from gpt-4:",str(answer)
|
115 |
return response
|
116 |
|
117 |
|