leadingbridge commited on
Commit
fbe916d
1 Parent(s): 200ccc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -48,10 +48,6 @@ def chatgpt_clone(input, history):
48
  history.append((input, output))
49
  return history, history
50
 
51
- def reset_chatbot(message, chatbot):
52
- message.reset()
53
- chatbot.reset()
54
-
55
  # Gradio Output Model
56
  with gr.Blocks() as demo:
57
  gr.Markdown("Choose the Chinese NLP model you want to use from the tabs")
@@ -65,8 +61,6 @@ with gr.Blocks() as demo:
65
  message = gr.Textbox(placeholder=prompt)
66
  state = gr.State()
67
  submit = gr.Button("SEND")
68
- reset = gr.Button("RESET")
69
  submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state])
70
- reset.click(reset_chatbot, inputs=[message, chatbot])
71
 
72
  demo.launch(inline=False)
 
48
  history.append((input, output))
49
  return history, history
50
 
 
 
 
 
51
  # Gradio Output Model
52
  with gr.Blocks() as demo:
53
  gr.Markdown("Choose the Chinese NLP model you want to use from the tabs")
 
61
  message = gr.Textbox(placeholder=prompt)
62
  state = gr.State()
63
  submit = gr.Button("SEND")
 
64
  submit.click(chatgpt_clone, inputs=[message, state], outputs=[chatbot, state])
 
65
 
66
  demo.launch(inline=False)