Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,9 @@ def predict(message, chatbot, system_prompt="", temperature=0.9, max_new_tokens=
|
|
39 |
|
40 |
if system_prompt != "":
|
41 |
system_message = system_prompt
|
|
|
|
|
|
|
42 |
temperature = float(temperature)
|
43 |
if temperature < 1e-2:
|
44 |
temperature = 1e-2
|
@@ -99,6 +102,9 @@ def predict_batch(message, chatbot, system_prompt="", temperature=0.9, max_new_t
|
|
99 |
|
100 |
if system_prompt != "":
|
101 |
system_message = system_prompt
|
|
|
|
|
|
|
102 |
temperature = float(temperature)
|
103 |
if temperature < 1e-2:
|
104 |
temperature = 1e-2
|
|
|
39 |
|
40 |
if system_prompt != "":
|
41 |
system_message = system_prompt
|
42 |
+
else:
|
43 |
+
system_message = system_message
|
44 |
+
|
45 |
temperature = float(temperature)
|
46 |
if temperature < 1e-2:
|
47 |
temperature = 1e-2
|
|
|
102 |
|
103 |
if system_prompt != "":
|
104 |
system_message = system_prompt
|
105 |
+
else:
|
106 |
+
system_message = system_message
|
107 |
+
|
108 |
temperature = float(temperature)
|
109 |
if temperature < 1e-2:
|
110 |
temperature = 1e-2
|