CogwiseAI commited on
Commit
a3a3f1f
1 Parent(s): df9603e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -217,7 +217,8 @@ def handle_input():
217
 
218
  # prompt = "Debate the merits and demerits of introducing simultaneous elections in India?"
219
  prompt=input
220
- answer=print(generate_response(prompt))
 
221
 
222
  # answer='Yes'
223
  chat_history.append((input, answer))
@@ -254,4 +255,4 @@ with st.container():
254
  write_chat_message(a, q)
255
 
256
  st.markdown('---')
257
- input = st.text_input("You are talking to an AI, ask any question.", key="input", on_change=handle_input)
 
217
 
218
  # prompt = "Debate the merits and demerits of introducing simultaneous elections in India?"
219
  prompt=input
220
+ answer=generate_response(prompt)
221
+ print(answer)
222
 
223
  # answer='Yes'
224
  chat_history.append((input, answer))
 
255
  write_chat_message(a, q)
256
 
257
  st.markdown('---')
258
+ input = st.text_input("You are talking to an AI, ask any question.", key="input", on_change=handle_input)