Update app.py
Browse files
app.py
CHANGED
|
@@ -510,11 +510,7 @@ def main():
|
|
| 510 |
|
| 511 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
| 512 |
|
| 513 |
-
|
| 514 |
-
with open("chat_template.jinja", "r", encoding="utf-8") as f:
|
| 515 |
-
processor.chat_template = f.read()
|
| 516 |
-
except Exception as e:
|
| 517 |
-
print("Could not load custom chat template:", e)
|
| 518 |
|
| 519 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 520 |
model_id,
|
|
|
|
| 510 |
|
| 511 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
| 512 |
|
| 513 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 514 |
|
| 515 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 516 |
model_id,
|