Fix: GPU duration 240s (max allowed)
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ print("β
Modell geladen!")
|
|
| 48 |
|
| 49 |
|
| 50 |
# βββ GPU-Funktion (nur hier ist echte GPU) ββββββββββββββββββββββββββββββ
|
| 51 |
-
@spaces.GPU(duration=
|
| 52 |
def generate_response(messages, temperature, max_tokens):
|
| 53 |
"""Generate a response from the model. GPU is real inside this function."""
|
| 54 |
text = tokenizer.apply_chat_template(
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
# βββ GPU-Funktion (nur hier ist echte GPU) ββββββββββββββββββββββββββββββ
|
| 51 |
+
@spaces.GPU(duration=240)
|
| 52 |
def generate_response(messages, temperature, max_tokens):
|
| 53 |
"""Generate a response from the model. GPU is real inside this function."""
|
| 54 |
text = tokenizer.apply_chat_template(
|