Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -451,14 +451,13 @@ async def synthesize_text(
|
|
451 |
play: bool = Form(True)
|
452 |
):
|
453 |
# Process the form data and perform text synthesis and other logic here
|
454 |
-
|
455 |
# You can access the form data like text_input, speed_slider, etc.
|
456 |
# For example, you can call your inferencing function here.
|
457 |
|
458 |
return {"message": f"Text to synthesize: {text_input}, Speed: {speed_slider}, Play: {play}"}
|
459 |
|
460 |
if __name__ == "__main__":
|
461 |
-
main()
|
462 |
import uvicorn
|
463 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
464 |
# main()
|
|
|
451 |
play: bool = Form(True)
|
452 |
):
|
453 |
# Process the form data and perform text synthesis and other logic here
|
454 |
+
main()
|
455 |
# You can access the form data like text_input, speed_slider, etc.
|
456 |
# For example, you can call your inferencing function here.
|
457 |
|
458 |
return {"message": f"Text to synthesize: {text_input}, Speed: {speed_slider}, Play: {play}"}
|
459 |
|
460 |
if __name__ == "__main__":
|
|
|
461 |
import uvicorn
|
462 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
463 |
# main()
|