aka7774 commited on
Commit
d3eb718
·
verified ·
1 Parent(s): 82d8c86

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +9 -0
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)}