Spaces:
Runtime error
Runtime error
Commit
•
e44d8cd
1
Parent(s):
ce636e9
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def demo_process(input_img):
|
|
15 |
|
16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
17 |
pretrained_model.to(device)
|
18 |
-
|
19 |
-
pixel_values = processor(
|
20 |
|
21 |
task_prompt = "<s_cord-v2>"
|
22 |
decoder_input_ids = processor.tokenizer(task_prompt, add_special_tokens=False, return_tensors="pt")["input_ids"]
|
|
|
15 |
|
16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
17 |
pretrained_model.to(device)
|
18 |
+
|
19 |
+
pixel_values = processor(input_img, return_tensors="pt").pixel_values
|
20 |
|
21 |
task_prompt = "<s_cord-v2>"
|
22 |
decoder_input_ids = processor.tokenizer(task_prompt, add_special_tokens=False, return_tensors="pt")["input_ids"]
|