edithram23 commited on
Commit
6b24525
·
verified ·
1 Parent(s): e40ffb5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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>