Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -52,7 +52,7 @@ async def read_form():
|
|
| 52 |
return html_content
|
| 53 |
|
| 54 |
# Handle the form submission
|
| 55 |
-
@app.post("/submit")
|
| 56 |
async def submit_form(message: str = Form(...)):
|
| 57 |
html_content = f"""
|
| 58 |
<!DOCTYPE html>
|
|
|
|
| 52 |
return html_content
|
| 53 |
|
| 54 |
# Handle the form submission
|
| 55 |
+
@app.post("/submit",response_class=HTMLResponse)
|
| 56 |
async def submit_form(message: str = Form(...)):
|
| 57 |
html_content = f"""
|
| 58 |
<!DOCTYPE html>
|