Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,16 +13,9 @@ from pathlib import Path
|
|
13 |
import pytesseract
|
14 |
from pdf2image import convert_from_path
|
15 |
from PIL import Image
|
16 |
-
from huggingface_hub import InferenceClient
|
17 |
from gradio_client import Client
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
API_URL = "https://api-inference.huggingface.co/models/"
|
22 |
-
|
23 |
-
client = InferenceClient(
|
24 |
-
"mistralai/Mistral-7B-Instruct-v0.1"
|
25 |
-
)
|
26 |
|
27 |
def ocrtotext(filename):
|
28 |
# Almacena todas las páginas del PDF en una variable
|
|
|
13 |
import pytesseract
|
14 |
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
|