Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,8 +63,8 @@ def translate_summary(summary, lang):
|
|
| 63 |
return " ".join(translated_chunks)
|
| 64 |
|
| 65 |
# Function to read PDF and summarize and translate chunk by chunk
|
| 66 |
-
def summarize_and_translate_pdf(
|
| 67 |
-
doc = fitz.open(
|
| 68 |
total_chunks = len(doc)
|
| 69 |
chunks = []
|
| 70 |
|
|
|
|
| 63 |
return " ".join(translated_chunks)
|
| 64 |
|
| 65 |
# Function to read PDF and summarize and translate chunk by chunk
|
| 66 |
+
def summarize_and_translate_pdf(uploaded_file, lang):
|
| 67 |
+
doc = fitz.open(uploaded_file)
|
| 68 |
total_chunks = len(doc)
|
| 69 |
chunks = []
|
| 70 |
|