Staticaliza commited on
Commit
b05cdf7
1 Parent(s): 71f0229

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,7 +68,7 @@ def predict(instruction, history, input, preinput, access_key, model, temperatur
68
 
69
  return (get_result, input)
70
 
71
- def clear():
72
  return []
73
 
74
  def maintain_cloud():
@@ -105,7 +105,7 @@ with gr.Blocks() as demo:
105
  output = gr.Textbox(label = "Output", value = "", lines = 50)
106
 
107
  run.click(predict, inputs = [instruction, history, input, preinput, access_key, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed], outputs = [output, input])
108
- clear.click(clear, [], history)
109
  cloud.click(maintain_cloud, inputs = [], outputs = [input, output])
110
 
111
  demo.queue(concurrency_count = 500, api_open = True).launch(show_api = True)
 
68
 
69
  return (get_result, input)
70
 
71
+ def clear_history():
72
  return []
73
 
74
  def maintain_cloud():
 
105
  output = gr.Textbox(label = "Output", value = "", lines = 50)
106
 
107
  run.click(predict, inputs = [instruction, history, input, preinput, access_key, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed], outputs = [output, input])
108
+ clear.click(clear_history, [], history)
109
  cloud.click(maintain_cloud, inputs = [], outputs = [input, output])
110
 
111
  demo.queue(concurrency_count = 500, api_open = True).launch(show_api = True)