atifsial123 commited on
Commit
e8204ec
·
verified ·
1 Parent(s): a86f196

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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".format(name)
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
+