Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def process_pdf(file):
|
|
43 |
df = pd.DataFrame(data, columns=['Username'])
|
44 |
|
45 |
# Save DataFrame to Excel
|
46 |
-
output_file = "
|
47 |
df.to_excel(output_file, index=False)
|
48 |
return output_file
|
49 |
|
@@ -52,7 +52,7 @@ def process_pdf(file):
|
|
52 |
iface = gr.Interface(fn=process_pdf,
|
53 |
inputs="file",
|
54 |
outputs=gr.outputs.File(label="Output Excel"),
|
55 |
-
title="PDF to Excel",
|
56 |
-
description="Upload
|
57 |
|
58 |
iface.launch()
|
|
|
43 |
df = pd.DataFrame(data, columns=['Username'])
|
44 |
|
45 |
# Save DataFrame to Excel
|
46 |
+
output_file = "Followers_output.xlsx"
|
47 |
df.to_excel(output_file, index=False)
|
48 |
return output_file
|
49 |
|
|
|
52 |
iface = gr.Interface(fn=process_pdf,
|
53 |
inputs="file",
|
54 |
outputs=gr.outputs.File(label="Output Excel"),
|
55 |
+
title="PDF threads data to Excel",
|
56 |
+
description="Hi Humood! Just Upload the PDF file of threads data and get an Excel file with usernames.")
|
57 |
|
58 |
iface.launch()
|