atifsial123 commited on
Commit
26575d6
·
verified ·
1 Parent(s): e581f14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def submit_form(name, whatsapp, membership, protest):
32
  pdf_output_path = f"/tmp/form_data_{name}.pdf"
33
  pdf.output(pdf_output_path)
34
 
35
- # Return nothing, backend storage only
36
  return None
37
 
38
  # Step 3: Set up the Gradio interface without showing the outputs to the user
@@ -52,4 +52,3 @@ with gr.Blocks() as demo:
52
 
53
  # Step 4: Launch the Gradio app
54
  demo.launch()
55
-
 
32
  pdf_output_path = f"/tmp/form_data_{name}.pdf"
33
  pdf.output(pdf_output_path)
34
 
35
+ # Return a success message for admin (optional) or None to the user
36
  return None
37
 
38
  # Step 3: Set up the Gradio interface without showing the outputs to the user
 
52
 
53
  # Step 4: Launch the Gradio app
54
  demo.launch()