Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ data = {
|
|
31 |
}
|
32 |
@app.get("/", response_class=HTMLResponse)
|
33 |
async def read_root(request: Request):
|
34 |
-
return templates.TemplateResponse("interface.html", {"request": request, "
|
35 |
|
36 |
import json
|
37 |
import logging
|
@@ -239,7 +239,7 @@ async def main(
|
|
239 |
|
240 |
# return {"message": f"Text to synthesize: {text_input}, Speed: {speed_slider}, Play: {play}"}
|
241 |
|
242 |
-
@app.get("/")
|
243 |
async def download_file(fileId: str):
|
244 |
# Retrieve the file path from the dictionary using the file ID
|
245 |
filepath = files.get(fileId)
|
|
|
31 |
}
|
32 |
@app.get("/", response_class=HTMLResponse)
|
33 |
async def read_root(request: Request):
|
34 |
+
return templates.TemplateResponse("interface.html", {"request": request, "data": data})
|
35 |
|
36 |
import json
|
37 |
import logging
|
|
|
239 |
|
240 |
# return {"message": f"Text to synthesize: {text_input}, Speed: {speed_slider}, Play: {play}"}
|
241 |
|
242 |
+
@app.get("/download/")
|
243 |
async def download_file(fileId: str):
|
244 |
# Retrieve the file path from the dictionary using the file ID
|
245 |
filepath = files.get(fileId)
|