Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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()
|
|
|