Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ DEF_TOKENS = 256
|
|
| 47 |
DEF_TEMPERATURE = 0.7
|
| 48 |
DEF_TOPK = 50
|
| 49 |
DEF_TOPP = 0.95
|
| 50 |
-
DEF_DURATION =
|
| 51 |
|
| 52 |
def get_duration(message, history=[], system_message="", max_tokens=DEF_TOKENS, temperature=DEF_TEMPERATURE, top_k=DEF_TOPK, top_p=DEF_TOPP, duration=DEF_DURATION):
|
| 53 |
return int(duration if duration is not None else DEF_DURATION)
|
|
|
|
| 47 |
DEF_TEMPERATURE = 0.7
|
| 48 |
DEF_TOPK = 50
|
| 49 |
DEF_TOPP = 0.95
|
| 50 |
+
DEF_DURATION = 10
|
| 51 |
|
| 52 |
def get_duration(message, history=[], system_message="", max_tokens=DEF_TOKENS, temperature=DEF_TEMPERATURE, top_k=DEF_TOPK, top_p=DEF_TOPP, duration=DEF_DURATION):
|
| 53 |
return int(duration if duration is not None else DEF_DURATION)
|