Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import os, re, json, datetime, pdfplumber
|
| 2 |
import pandas as pd
|
| 3 |
import gradio as gr
|
| 4 |
from huggingface_hub import InferenceClient
|
|
@@ -6,21 +6,7 @@ from dataclasses import dataclass
|
|
| 6 |
from typing import Dict, Optional
|
| 7 |
from pptx import Presentation
|
| 8 |
from docx import Document
|
| 9 |
-
|
| 10 |
-
try:
|
| 11 |
-
from PIL import Image
|
| 12 |
-
except Exception:
|
| 13 |
-
Image = None
|
| 14 |
-
|
| 15 |
-
try:
|
| 16 |
-
import pytesseract
|
| 17 |
-
except Exception:
|
| 18 |
-
pytesseract = None
|
| 19 |
-
|
| 20 |
-
try:
|
| 21 |
-
import requests
|
| 22 |
-
except Exception:
|
| 23 |
-
requests = None
|
| 24 |
|
| 25 |
# =====================================================
|
| 26 |
# CORE CONFIG ****** CUSTOMIZE ******
|
|
|
|
| 1 |
+
import os, re, json, datetime, pdfplumber, pytesseract, requests
|
| 2 |
import pandas as pd
|
| 3 |
import gradio as gr
|
| 4 |
from huggingface_hub import InferenceClient
|
|
|
|
| 6 |
from typing import Dict, Optional
|
| 7 |
from pptx import Presentation
|
| 8 |
from docx import Document
|
| 9 |
+
from PIL import Image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# =====================================================
|
| 12 |
# CORE CONFIG ****** CUSTOMIZE ******
|