shayekh commited on
Commit
cd7423f
·
verified ·
1 Parent(s): fb65671

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -510,11 +510,7 @@ def main():
510
 
511
  processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
512
 
513
- try:
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,