lekkalar commited on
Commit
ad584a6
1 Parent(s): 947e828

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -109,12 +109,12 @@ def answer_predefined_questions(document_type):
109
  question = queryList[i]
110
  field = fieldList[i]
111
 
112
- fieldInfo = "Field Name:", field
113
  response += fieldInfo
114
- questionInfo = "; Question sent to gpt-4: ", question
115
  response += questionInfo
116
  answer = pdf_qa.run(question)
117
- gptResponse = "; Response from gpt-4:", answer
118
  response += gptResponse
119
 
120
  return response
 
109
  question = queryList[i]
110
  field = fieldList[i]
111
 
112
+ fieldInfo = "Field Name:"+ field
113
  response += fieldInfo
114
+ questionInfo = "; Question sent to gpt-4: "+ question
115
  response += questionInfo
116
  answer = pdf_qa.run(question)
117
+ gptResponse = "; Response from gpt-4:"+ answer
118
  response += gptResponse
119
 
120
  return response