Spaces:
Runtime error
Runtime error
correct text
Browse files
app.py
CHANGED
|
@@ -85,6 +85,7 @@ def run_example(image, text_input, system_prompt, model_id="OS-Copilot/OS-Atlas-
|
|
| 85 |
generated_ids_trimmed, skip_special_tokens=False, clean_up_tokenization_spaces=False
|
| 86 |
)
|
| 87 |
print(output_text)
|
|
|
|
| 88 |
|
| 89 |
object_ref_pattern = r"<\|object_ref_start\|>(.*?)<\|object_ref_end\|>"
|
| 90 |
box_pattern = r"<\|box_start\|>(.*?)<\|box_end\|>"
|
|
|
|
| 85 |
generated_ids_trimmed, skip_special_tokens=False, clean_up_tokenization_spaces=False
|
| 86 |
)
|
| 87 |
print(output_text)
|
| 88 |
+
text = output_text[0]
|
| 89 |
|
| 90 |
object_ref_pattern = r"<\|object_ref_start\|>(.*?)<\|object_ref_end\|>"
|
| 91 |
box_pattern = r"<\|box_start\|>(.*?)<\|box_end\|>"
|