Update subgen.py
This commit is contained in:
@@ -470,8 +470,8 @@ def is_video_file(file_path):
|
|||||||
|
|
||||||
def path_mapping(fullpath):
|
def path_mapping(fullpath):
|
||||||
if use_path_mapping:
|
if use_path_mapping:
|
||||||
fullpath = fullpath.replace(path_mapping_from, path_mapping_to)
|
|
||||||
logging.debug("Updated path: " + fullpath.replace(path_mapping_from, path_mapping_to))
|
logging.debug("Updated path: " + fullpath.replace(path_mapping_from, path_mapping_to))
|
||||||
|
return fullpath.replace(path_mapping_from, path_mapping_to)
|
||||||
return fullpath
|
return fullpath
|
||||||
|
|
||||||
def transcribe_existing():
|
def transcribe_existing():
|
||||||
@@ -591,7 +591,8 @@ whisper_languages = {
|
|||||||
"su": "sundanese",
|
"su": "sundanese",
|
||||||
}
|
}
|
||||||
|
|
||||||
print("Starting webhook!")
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
print("Starting Subgen with listening webhooks!")
|
||||||
uvicorn.run("subgen:app", host="0.0.0.0", port=int(webhookport), reload=debug, use_colors=True)
|
uvicorn.run("subgen:app", host="0.0.0.0", port=int(webhookport), reload=debug, use_colors=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user