Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
import os
|
2 |
os.system("curl -L -o tensor.pt https://seyarabata.com/6336a7f22b9fd")
|
3 |
|
|
|
4 |
import torch
|
5 |
from PIL import Image
|
6 |
-
import gradio as gr
|
7 |
-
|
8 |
from strhub.data.module import SceneTextDataModule
|
9 |
-
from strhub.models.utils import load_from_checkpoint, parse_model_args
|
10 |
|
11 |
parseq = torch.load('tensor.pt', map_location=torch.device('cpu')).eval()
|
12 |
img_transform = SceneTextDataModule.get_transform(parseq.hparams.img_size)
|
|
|
1 |
import os
|
2 |
os.system("curl -L -o tensor.pt https://seyarabata.com/6336a7f22b9fd")
|
3 |
|
4 |
+
import gradio as gr
|
5 |
import torch
|
6 |
from PIL import Image
|
|
|
|
|
7 |
from strhub.data.module import SceneTextDataModule
|
8 |
+
# from strhub.models.utils import load_from_checkpoint, parse_model_args
|
9 |
|
10 |
parseq = torch.load('tensor.pt', map_location=torch.device('cpu')).eval()
|
11 |
img_transform = SceneTextDataModule.get_transform(parseq.hparams.img_size)
|