Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def submit_form(name, whatsapp, membership, protest):
|
|
29 |
pdf.cell(200, 10, txt=f"Participation in Protest: {protest}", ln=True)
|
30 |
|
31 |
# Save PDF to /tmp/ folder (backend storage)
|
32 |
-
pdf_output_path = "/tmp/form_data_{}.pdf"
|
33 |
pdf.output(pdf_output_path)
|
34 |
|
35 |
# Return a success message and links to download the CSV and PDF files for the admin
|
@@ -58,3 +58,4 @@ with gr.Blocks() as demo:
|
|
58 |
# Step 4: Launch the Gradio app
|
59 |
demo.launch()
|
60 |
|
|
|
|
29 |
pdf.cell(200, 10, txt=f"Participation in Protest: {protest}", ln=True)
|
30 |
|
31 |
# Save PDF to /tmp/ folder (backend storage)
|
32 |
+
pdf_output_path = f"/tmp/form_data_{name}.pdf"
|
33 |
pdf.output(pdf_output_path)
|
34 |
|
35 |
# Return a success message and links to download the CSV and PDF files for the admin
|
|
|
58 |
# Step 4: Launch the Gradio app
|
59 |
demo.launch()
|
60 |
|
61 |
+
|