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