lewtun HF staff commited on
Commit
b75426e
1 Parent(s): 62373e8

Bump gradio

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +6 -3
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: ⭐️💬
4
  colorFrom: pink
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 3.34.0
8
  app_file: app.py
9
  pinned: true
10
  license: mit
 
4
  colorFrom: pink
5
  colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: 3.33.1
8
  app_file: app.py
9
  pinned: true
10
  license: mit
app.py CHANGED
@@ -166,8 +166,13 @@ def generate(
166
  else:
167
  history[-1] = output
168
 
 
 
 
 
 
169
  chat = [
170
- (wrap_html_code(history[i].strip()), wrap_html_code(history[i + 1].strip()))
171
  for i in range(0, len(history) - 1, 2)
172
  ]
173
 
@@ -352,7 +357,6 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
352
  do_save,
353
  ],
354
  outputs=[chatbot, history, last_user_message, user_message],
355
- show_progress=False,
356
  )
357
 
358
  send_button.click(
@@ -371,7 +375,6 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
371
  do_save,
372
  ],
373
  outputs=[chatbot, history, last_user_message, user_message],
374
- show_progress=False,
375
  )
376
 
377
  clear_chat_button.click(clear_chat, outputs=[chatbot, history])
 
166
  else:
167
  history[-1] = output
168
 
169
+ # chat = [
170
+ # (wrap_html_code(history[i].strip()), wrap_html_code(history[i + 1].strip()))
171
+ # for i in range(0, len(history) - 1, 2)
172
+ # ]
173
+
174
  chat = [
175
+ (history[i].strip(), history[i + 1].strip())
176
  for i in range(0, len(history) - 1, 2)
177
  ]
178
 
 
357
  do_save,
358
  ],
359
  outputs=[chatbot, history, last_user_message, user_message],
 
360
  )
361
 
362
  send_button.click(
 
375
  do_save,
376
  ],
377
  outputs=[chatbot, history, last_user_message, user_message],
 
378
  )
379
 
380
  clear_chat_button.click(clear_chat, outputs=[chatbot, history])