akhaliq HF staff commited on
Commit
99347e7
1 Parent(s): 1a53a1b

modified: app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,8 +34,8 @@ model = AutoModel.from_pretrained("unum-cloud/uform-gen2-dpo", trust_remote_code
34
  processor = AutoProcessor.from_pretrained("unum-cloud/uform-gen2-dpo", trust_remote_code=True)
35
 
36
  @spaces.GPU(duration=10, queue=False)
37
- def answer_question(image, prompt):
38
- inputs = processor(text=[prompt], images=[image], return_tensors="pt")
39
  with torch.inference_mode():
40
  output = model.generate(
41
  **inputs,
 
34
  processor = AutoProcessor.from_pretrained("unum-cloud/uform-gen2-dpo", trust_remote_code=True)
35
 
36
  @spaces.GPU(duration=10, queue=False)
37
+ def answer_question(image3, prompt3):
38
+ inputs = processor(text=[prompt3], images=[image3], return_tensors="pt")
39
  with torch.inference_mode():
40
  output = model.generate(
41
  **inputs,