Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -51,9 +51,9 @@ async def set_prompt(prompt: str, language: str = None):
|
|
51 |
return {"error": str(e)}
|
52 |
|
53 |
@app.post("/set_transcribe_args")
|
54 |
-
async def
|
55 |
try:
|
56 |
-
fn.
|
57 |
|
58 |
return {"status": 0}
|
59 |
except Exception as e:
|
|
|
51 |
return {"error": str(e)}
|
52 |
|
53 |
@app.post("/set_transcribe_args")
|
54 |
+
async def set_transcribe_kwargs(args: dict):
|
55 |
try:
|
56 |
+
fn.set_transcribe_kwargs(args)
|
57 |
|
58 |
return {"status": 0}
|
59 |
except Exception as e:
|