Spaces:
Sleeping
Sleeping
Update app.py
Browse filesfixed an error
app.py
CHANGED
@@ -17,6 +17,5 @@ def OCR(image):
|
|
17 |
|
18 |
return generated_text
|
19 |
|
20 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
21 |
demo = gr.Interface(fn=OCR, inputs=gr.Image(),outputs=gr.Textbox())
|
22 |
demo.launch()
|
|
|
17 |
|
18 |
return generated_text
|
19 |
|
|
|
20 |
demo = gr.Interface(fn=OCR, inputs=gr.Image(),outputs=gr.Textbox())
|
21 |
demo.launch()
|