toajibul commited on
Commit
8facec8
·
verified ·
1 Parent(s): df065d9

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -131,8 +131,10 @@ def answer_fn(question):
131
  def chat_fn(user_message, history):
132
  bot_response = answer_fn(user_message)
133
  history = history + [(user_message, bot_response)]
 
134
  return history, history
135
 
 
136
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
137
  with gr.Column(elem_id="main-col", scale=1):
138
  gr.Markdown(
 
131
  def chat_fn(user_message, history):
132
  bot_response = answer_fn(user_message)
133
  history = history + [(user_message, bot_response)]
134
+ print("Returning from chat_fn:", history)
135
  return history, history
136
 
137
+
138
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
139
  with gr.Column(elem_id="main-col", scale=1):
140
  gr.Markdown(