Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,11 @@ from pdf2image import convert_from_path
|
|
15 |
from PIL import Image
|
16 |
from gradio_client import Client
|
17 |
|
18 |
-
client = Client("https://9bc24cb52607aad436.gradio.live/")
|
|
|
|
|
|
|
|
|
19 |
|
20 |
def ocrtotext(filename):
|
21 |
# Almacena todas las páginas del PDF en una variable
|
|
|
15 |
from PIL import Image
|
16 |
from gradio_client import Client
|
17 |
|
18 |
+
#client = Client("https://9bc24cb52607aad436.gradio.live/")
|
19 |
+
|
20 |
+
client = InferenceClient(
|
21 |
+
"HuggingFaceH4/zephyr-7b-alpha"
|
22 |
+
)
|
23 |
|
24 |
def ocrtotext(filename):
|
25 |
# Almacena todas las páginas del PDF en una variable
|