bhaskartripathi commited on
Commit
f6fc95e
1 Parent(s): 90bd918

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -165,7 +165,7 @@ def question_answer(url, file, question, openAI_key, model):
165
  return '[ERROR]: Question field is empty'
166
 
167
  if model == "text-davinci-003":
168
- return generate_answer_text-davinci-003(question, openAI_key)
169
  else:
170
  return generate_answer(question, openAI_key, model)
171
 
@@ -201,7 +201,7 @@ def generate_answer_text_davinci_003(question,openAI_key):
201
  "answer should be short and concise. \n\nQuery: {question}\nAnswer: "
202
 
203
  prompt += f"Query: {question}\nAnswer:"
204
- answer = generate_text(openAI_key, prompt,"text-davinci-003")
205
  return answer
206
 
207
 
 
165
  return '[ERROR]: Question field is empty'
166
 
167
  if model == "text-davinci-003":
168
+ return generate_answer_text_davinci_003(question, openAI_key)
169
  else:
170
  return generate_answer(question, openAI_key, model)
171
 
 
201
  "answer should be short and concise. \n\nQuery: {question}\nAnswer: "
202
 
203
  prompt += f"Query: {question}\nAnswer:"
204
+ answer = generate_text_text_davinci_003(openAI_key, prompt,"text-davinci-003")
205
  return answer
206
 
207