ysharma HF staff commited on
Commit
40a578e
·
1 Parent(s): bc47939

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,7 +40,7 @@ def post_request_alpha(payload):
40
  return response.json()
41
 
42
 
43
- def predict_beta(message, chatbot, temperature=0.9, max_new_tokens=256, top_p=0.6, repetition_penalty=1.0):
44
  temperature = float(temperature)
45
  top_p = float(top_p)
46
 
@@ -81,7 +81,7 @@ def predict_beta(message, chatbot, temperature=0.9, max_new_tokens=256, top_p=0.
81
  raise gr.Error(error_msg)
82
 
83
 
84
- def predict_alpha(message, chatbot, temperature=0.9, max_new_tokens=256, top_p=0.6, repetition_penalty=1.0):
85
  temperature = float(temperature)
86
  top_p = float(top_p)
87
 
 
40
  return response.json()
41
 
42
 
43
+ def predict_beta(message, chatbot=[], temperature=0.9, max_new_tokens=256, top_p=0.6, repetition_penalty=1.0):
44
  temperature = float(temperature)
45
  top_p = float(top_p)
46
 
 
81
  raise gr.Error(error_msg)
82
 
83
 
84
+ def predict_alpha(message, chatbot=[], temperature=0.9, max_new_tokens=256, top_p=0.6, repetition_penalty=1.0):
85
  temperature = float(temperature)
86
  top_p = float(top_p)
87