Spaces:
Running
Running
Update app.py
Browse files
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()
|