Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ from transformers import DonutProcessor, VisionEncoderDecoderModel
|
|
| 3 |
import requests
|
| 4 |
from PIL import Image
|
| 5 |
import torch, os, re
|
|
|
|
| 6 |
|
| 7 |
torch.hub.download_url_to_file('https://raw.githubusercontent.com/vis-nlp/ChartQA/main/ChartQA%20Dataset/test/png/74801584018932.png', 'chart_example_1.png')
|
| 8 |
torch.hub.download_url_to_file('https://raw.githubusercontent.com/vis-nlp/ChartQA/main/ChartQA%20Dataset/val/png/multi_col_1229.png', 'chart_example_2.png')
|
|
|
|
| 3 |
import requests
|
| 4 |
from PIL import Image
|
| 5 |
import torch, os, re
|
| 6 |
+
import spaces
|
| 7 |
|
| 8 |
torch.hub.download_url_to_file('https://raw.githubusercontent.com/vis-nlp/ChartQA/main/ChartQA%20Dataset/test/png/74801584018932.png', 'chart_example_1.png')
|
| 9 |
torch.hub.download_url_to_file('https://raw.githubusercontent.com/vis-nlp/ChartQA/main/ChartQA%20Dataset/val/png/multi_col_1229.png', 'chart_example_2.png')
|