Spaces:
Build error
Build error
Commit
·
5ff6247
1
Parent(s):
9f6e32c
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import easyocr
|
| 3 |
import transformers
|
|
|
|
|
|
|
| 4 |
|
| 5 |
reader=easyocr.Reader(['en'])
|
| 6 |
# this needs to run only once to load the model into memory
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import easyocr
|
| 3 |
import transformers
|
| 4 |
+
import torch
|
| 5 |
+
from torch import cuda
|
| 6 |
|
| 7 |
reader=easyocr.Reader(['en'])
|
| 8 |
# this needs to run only once to load the model into memory
|