Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,12 @@ import gradio as gr
|
|
| 2 |
import pdfplumber
|
| 3 |
import pandas as pd
|
| 4 |
import openpyxl # Explicitly import openpyxl for Excel support
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
def extract_data(pdf_file_path, start_pos, end_pos):
|
| 7 |
try:
|
|
|
|
| 2 |
import pdfplumber
|
| 3 |
import pandas as pd
|
| 4 |
import openpyxl # Explicitly import openpyxl for Excel support
|
| 5 |
+
import os
|
| 6 |
+
|
| 7 |
+
# List all files in the /mnt/data/ directory
|
| 8 |
+
files = os.listdir("/mnt/data/")
|
| 9 |
+
print("Files in /mnt/data/:", files)
|
| 10 |
+
|
| 11 |
|
| 12 |
def extract_data(pdf_file_path, start_pos, end_pos):
|
| 13 |
try:
|