Update app.py
Browse files
app.py
CHANGED
@@ -168,6 +168,7 @@ def invoke(openai_api_key, rag_option, prompt):
|
|
168 |
result = completion["result"]
|
169 |
else:
|
170 |
result = llm_chain(llm, prompt)
|
|
|
171 |
except Exception as e:
|
172 |
status_msg = e
|
173 |
raise gr.Error(e)
|
|
|
168 |
result = completion["result"]
|
169 |
else:
|
170 |
result = llm_chain(llm, prompt)
|
171 |
+
completion = result
|
172 |
except Exception as e:
|
173 |
status_msg = e
|
174 |
raise gr.Error(e)
|