Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -114,13 +114,13 @@ renamed_audio_file = None
|
|
114 |
#@app.post("/", response_class=FileResponse)
|
115 |
@app.post("/", response_class=HTMLResponse)
|
116 |
async def main(
|
|
|
117 |
text_input: str = Form(...),
|
118 |
speaker: str = Form(...),
|
119 |
speed_slider: float = Form(...),
|
120 |
noise_scale_slider: float = Form(...),
|
121 |
noise_scale_w_slider: float = Form(...),
|
122 |
-
play: bool = Form(True)
|
123 |
-
request: Request
|
124 |
):
|
125 |
"""Main entry point"""
|
126 |
sys.path.append('./content/piper/src/python')
|
|
|
114 |
#@app.post("/", response_class=FileResponse)
|
115 |
@app.post("/", response_class=HTMLResponse)
|
116 |
async def main(
|
117 |
+
request: Request,
|
118 |
text_input: str = Form(...),
|
119 |
speaker: str = Form(...),
|
120 |
speed_slider: float = Form(...),
|
121 |
noise_scale_slider: float = Form(...),
|
122 |
noise_scale_w_slider: float = Form(...),
|
123 |
+
play: bool = Form(True)
|
|
|
124 |
):
|
125 |
"""Main entry point"""
|
126 |
sys.path.append('./content/piper/src/python')
|