BlueDice commited on
Commit
266eed2
1 Parent(s): 6a37e43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -17,9 +17,6 @@ def predict(user_name, user_input, chat_history = []):
17
  chat_history.append((user_input, response))
18
  return chat_history, chat_history
19
 
20
- def clear_state(user_name, user_input, chat_history = []):
21
- return [], []
22
-
23
  app = gr.Interface(
24
  fn = predict,
25
  title = title,
@@ -35,6 +32,4 @@ app = gr.Interface(
35
  theme = "gstaff/sketch"
36
  )
37
 
38
- app.add_button("Clear", clear_state, inputs = app.inputs, outputs = app.outputs)
39
-
40
  app.launch()
 
17
  chat_history.append((user_input, response))
18
  return chat_history, chat_history
19
 
 
 
 
20
  app = gr.Interface(
21
  fn = predict,
22
  title = title,
 
32
  theme = "gstaff/sketch"
33
  )
34
 
 
 
35
  app.launch()