KushwanthK commited on
Commit
455de4c
1 Parent(s): 0a8201e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.error(f"Error invoke: {e}")
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