lanbogao commited on
Commit
f705352
1 Parent(s): 3424983

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -5,14 +5,16 @@ from fastapi import FastAPI, Response, Request
5
  import yt_dlp
6
  import uvicorn
7
 
8
- CUSTOM_PATH = "/"
9
 
10
  app = FastAPI()
11
 
12
  langs = ["None"] + sorted(list(whisper.tokenizer.LANGUAGES.values()))
13
  model_size = list(whisper._MODELS.keys())
14
 
15
-
 
 
16
 
17
  #async def get_subtitle(url: str):
18
  # Download the subtitle with download_subtitle()
 
5
  import yt_dlp
6
  import uvicorn
7
 
8
+ CUSTOM_PATH = "/gradio"
9
 
10
  app = FastAPI()
11
 
12
  langs = ["None"] + sorted(list(whisper.tokenizer.LANGUAGES.values()))
13
  model_size = list(whisper._MODELS.keys())
14
 
15
+ @app.get("/")
16
+ def read_main():
17
+ return {"message": "This is your main app"}
18
 
19
  #async def get_subtitle(url: str):
20
  # Download the subtitle with download_subtitle()