Spaces:
Sleeping
Sleeping
Commit
·
72ead82
1
Parent(s):
6858abc
test
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from PIL import Image
|
|
2 |
import pytesseract
|
3 |
import os
|
4 |
import pymupdf
|
5 |
-
import spaces
|
6 |
import torch
|
7 |
import gradio as gr
|
8 |
from prepare import prepare
|
@@ -23,7 +23,7 @@ from dotenv import load_dotenv
|
|
23 |
|
24 |
zero = torch.Tensor([0]).cuda()
|
25 |
|
26 |
-
|
27 |
def read_pdf(file_path):
|
28 |
output = ''
|
29 |
doc = pymupdf.open(file_path)
|
|
|
2 |
import pytesseract
|
3 |
import os
|
4 |
import pymupdf
|
5 |
+
#import spaces
|
6 |
import torch
|
7 |
import gradio as gr
|
8 |
from prepare import prepare
|
|
|
23 |
|
24 |
zero = torch.Tensor([0]).cuda()
|
25 |
|
26 |
+
#@spaces.GPU
|
27 |
def read_pdf(file_path):
|
28 |
output = ''
|
29 |
doc = pymupdf.open(file_path)
|