Halo
commited on
Commit
•
1b67450
1
Parent(s):
c74d018
Update app
Browse files
app.py
CHANGED
@@ -141,9 +141,9 @@ def generate_answer(question, openAI_key, model_name):
|
|
141 |
|
142 |
prompt += f"Query: {question}\nAnswer:"
|
143 |
if model_name.startswith('gpt'):
|
144 |
-
answer = generate_text(openAI_key, prompt, question,
|
145 |
else:
|
146 |
-
answer = generate_text(openAI_key, prompt,
|
147 |
return answer
|
148 |
|
149 |
|
|
|
141 |
|
142 |
prompt += f"Query: {question}\nAnswer:"
|
143 |
if model_name.startswith('gpt'):
|
144 |
+
answer = generate_text(openAI_key, prompt, question, model_name)
|
145 |
else:
|
146 |
+
answer = generate_text(openAI_key, prompt, model_name)
|
147 |
return answer
|
148 |
|
149 |
|