Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def analyze_image(image, prompt):
|
|
| 43 |
# }
|
| 44 |
|
| 45 |
with torch.no_grad():
|
| 46 |
-
output = model.generate(**
|
| 47 |
print(processor.decode(output[0]))
|
| 48 |
result = processor.decode(output[0], skip_special_tokens=True)
|
| 49 |
|
|
|
|
| 43 |
# }
|
| 44 |
|
| 45 |
with torch.no_grad():
|
| 46 |
+
output = model.generate(**inputs, max_new_tokens=100)
|
| 47 |
print(processor.decode(output[0]))
|
| 48 |
result = processor.decode(output[0], skip_special_tokens=True)
|
| 49 |
|