Commit
·
9b4d4e7
1
Parent(s):
390e55e
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def save_history(history):
|
|
| 88 |
json.dump(dict_list, f, ensure_ascii=False, indent=2)
|
| 89 |
|
| 90 |
|
| 91 |
-
def save_config(max_length=2048, top_p=0.7, temperature=0.
|
| 92 |
with open('config.json', 'w') as f:
|
| 93 |
json.dump({'max_length': max_length, 'top_p': top_p, 'temperature': temperature, 'memory_limit': memory_limit}, f, indent=2)
|
| 94 |
|
|
|
|
| 88 |
json.dump(dict_list, f, ensure_ascii=False, indent=2)
|
| 89 |
|
| 90 |
|
| 91 |
+
def save_config(max_length=2048, top_p=0.7, temperature=0.7, memory_limit=0.0):
|
| 92 |
with open('config.json', 'w') as f:
|
| 93 |
json.dump({'max_length': max_length, 'top_p': top_p, 'temperature': temperature, 'memory_limit': memory_limit}, f, indent=2)
|
| 94 |
|