Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,7 @@ def promt_engineer(text, query):
|
|
| 131 |
response_text = llm.invoke(prompt)
|
| 132 |
escaped_query = re.escape(query)
|
| 133 |
result = re.split(f'Answer the question based on the above context: {escaped_query}\n',response_text)[-1]
|
| 134 |
-
st.
|
| 135 |
except Exception as e:
|
| 136 |
st.error(f"Error invoke: {e}")
|
| 137 |
|
|
|
|
| 131 |
response_text = llm.invoke(prompt)
|
| 132 |
escaped_query = re.escape(query)
|
| 133 |
result = re.split(f'Answer the question based on the above context: {escaped_query}\n',response_text)[-1]
|
| 134 |
+
st.write(result)
|
| 135 |
except Exception as e:
|
| 136 |
st.error(f"Error invoke: {e}")
|
| 137 |
|