Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import PyPDF2
|
| 3 |
import docx
|
| 4 |
import requests
|
| 5 |
import json
|
| 6 |
|
|
|
|
| 7 |
# Function to extract text from PDF
|
| 8 |
def extract_text_from_pdf(file):
|
| 9 |
pdf_reader = PyPDF2.PdfReader(file)
|
|
|
|
| 1 |
+
import os
|
| 2 |
import gradio as gr
|
| 3 |
import PyPDF2
|
| 4 |
import docx
|
| 5 |
import requests
|
| 6 |
import json
|
| 7 |
|
| 8 |
+
|
| 9 |
# Function to extract text from PDF
|
| 10 |
def extract_text_from_pdf(file):
|
| 11 |
pdf_reader = PyPDF2.PdfReader(file)
|