enoreyes commited on
Commit
28ca64c
1 Parent(s): 96fbc4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def chat(message, history):
30
  history = history or []
31
  response = ""
32
  try:
33
- response = chain.run(input=message)
34
  markdown = generate_markdown(response)
35
  except Exception as e:
36
  print(f"Erorr: {e}")
 
30
  history = history or []
31
  response = ""
32
  try:
33
+ response = chain({"question": f"{message}"}, return_only_outputs=True)
34
  markdown = generate_markdown(response)
35
  except Exception as e:
36
  print(f"Erorr: {e}")