uwe311 commited on
Commit
14c2b84
Β·
1 Parent(s): 03e51f0

Fix: GPU duration 240s (max allowed)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ print("βœ… Modell geladen!")
48
 
49
 
50
  # ─── GPU-Funktion (nur hier ist echte GPU) ──────────────────────────────
51
- @spaces.GPU(duration=120)
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(