Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|