Spaces:
Sleeping
Sleeping
Commit
·
fe66e47
1
Parent(s):
306bb68
more time to spaces
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def load_model():
|
|
| 60 |
|
| 61 |
_model_cache = None
|
| 62 |
|
| 63 |
-
@spaces.GPU(duration=
|
| 64 |
def get_model():
|
| 65 |
global _model_cache
|
| 66 |
print(f"Model: {_model_cache}")
|
|
@@ -193,7 +193,7 @@ def interactive_chat(query):
|
|
| 193 |
print(f"last messages: {last_messages}")
|
| 194 |
print()
|
| 195 |
return answer
|
| 196 |
-
@spaces.GPU(duration=
|
| 197 |
def get_answers():
|
| 198 |
answers = []
|
| 199 |
last_messages = []
|
|
|
|
| 60 |
|
| 61 |
_model_cache = None
|
| 62 |
|
| 63 |
+
@spaces.GPU(duration=180)
|
| 64 |
def get_model():
|
| 65 |
global _model_cache
|
| 66 |
print(f"Model: {_model_cache}")
|
|
|
|
| 193 |
print(f"last messages: {last_messages}")
|
| 194 |
print()
|
| 195 |
return answer
|
| 196 |
+
@spaces.GPU(duration=1500)
|
| 197 |
def get_answers():
|
| 198 |
answers = []
|
| 199 |
last_messages = []
|