Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,9 @@ import gradio as gr
|
|
2 |
import pandas as pd
|
3 |
import fitz # PyMuPDF
|
4 |
import os
|
5 |
-
from huggingface_hub import HfApi
|
|
|
|
|
6 |
|
7 |
def extract_paragraphs_with_headers(pdf_path):
|
8 |
doc = fitz.open(pdf_path)
|
|
|
2 |
import pandas as pd
|
3 |
import fitz # PyMuPDF
|
4 |
import os
|
5 |
+
from huggingface_hub import HfApi
|
6 |
+
from huggingface_hub.utils import HfHubHTTPError
|
7 |
+
|
8 |
|
9 |
def extract_paragraphs_with_headers(pdf_path):
|
10 |
doc = fitz.open(pdf_path)
|