Spaces:
Paused
Paused
Update app.py
Browse files
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=
|
| 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 = [
|