Skip to content

Commit

Permalink
Update subgen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Feb 5, 2024
1 parent eb3ebf8 commit bfa281c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ def is_video_file(file_path):

def path_mapping(fullpath):
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))
return fullpath.replace(path_mapping_from, path_mapping_to)
return fullpath

def transcribe_existing():
Expand Down Expand Up @@ -591,7 +591,8 @@ def transcribe_existing():
"su": "sundanese",
}

print("Starting webhook!")

if __name__ == "__main__":
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)

0 comments on commit bfa281c

Please sign in to comment.