Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -222,7 +222,7 @@ def run_ner(text: str):
|
|
| 222 |
# NER PDF → RTF
|
| 223 |
def run_ner_pdf(pdf_file):
|
| 224 |
if pdf_file is None:
|
| 225 |
-
|
| 226 |
|
| 227 |
pdf_path = pdf_file if isinstance(pdf_file, str) else pdf_file.name
|
| 228 |
doc = fitz.open(pdf_path)
|
|
|
|
| 222 |
# NER PDF → RTF
|
| 223 |
def run_ner_pdf(pdf_file):
|
| 224 |
if pdf_file is None:
|
| 225 |
+
return "", "", "<p style='color:#94a3b8;font-style:italic;padding:16px;'>Unggah file PDF terlebih dahulu.</p>", ""
|
| 226 |
|
| 227 |
pdf_path = pdf_file if isinstance(pdf_file, str) else pdf_file.name
|
| 228 |
doc = fitz.open(pdf_path)
|