Chad commited on
Commit
a1d5bb3
·
1 Parent(s): 5a88082
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -37,13 +37,6 @@ def respond(
37
  response += token
38
  yield response
39
 
40
-
41
- def example_click(example, history):
42
- if history is None:
43
- history = []
44
- history.append((example, ""))
45
- return example, history
46
-
47
  demo = gr.ChatInterface(
48
  respond,
49
  additional_inputs=[
@@ -70,8 +63,7 @@ demo = gr.ChatInterface(
70
  ["Quand la Seconde Guerre mondiale a-t-elle commencé et terminé ?"],
71
  ["Quelle est l'importance de la Magna Carta ?"]
72
  ],
73
- cache_examples=False,
74
- example_click=example_click
75
  )
76
 
77
  if __name__ == "__main__":
 
37
  response += token
38
  yield response
39
 
 
 
 
 
 
 
 
40
  demo = gr.ChatInterface(
41
  respond,
42
  additional_inputs=[
 
63
  ["Quand la Seconde Guerre mondiale a-t-elle commencé et terminé ?"],
64
  ["Quelle est l'importance de la Magna Carta ?"]
65
  ],
66
+ cache_examples=False
 
67
  )
68
 
69
  if __name__ == "__main__":