Maskedxx commited on
Commit
8301c42
·
verified ·
1 Parent(s): 76915f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def predict(image, task):
51
  print(f"[{time.strftime('%H:%M:%S')}] Generating... (input shape: {inputs.input_ids.shape})")
52
 
53
  with torch.inference_mode():
54
- generated_ids = model.generate(**inputs, max_new_tokens=1024)
55
 
56
  print(f"[{time.strftime('%H:%M:%S')}] Decoding...")
57
  generated_ids_trimmed = [
 
51
  print(f"[{time.strftime('%H:%M:%S')}] Generating... (input shape: {inputs.input_ids.shape})")
52
 
53
  with torch.inference_mode():
54
+ generated_ids = model.generate(**inputs, max_new_tokens=256)
55
 
56
  print(f"[{time.strftime('%H:%M:%S')}] Decoding...")
57
  generated_ids_trimmed = [