Spaces:
Paused
Paused
modified: app.py
Browse files
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(
|
38 |
-
inputs = processor(text=[
|
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,
|