Spaces:
Sleeping
Sleeping
| from fastapi import FastAPI, UploadFile | |
| from pydantic import BaseModel | |
| from .functions import handle_url, get_health, test_response | |
| class VideoURL(BaseModel): | |
| url: str | |
| from_lang: str = "en" | |
| to_lang: str = "hi" | |
| gender: str = "MALE" | |
| app = FastAPI() | |
| async def main(): | |
| return get_health() | |
| async def synthesize_video_url(video: VideoURL): | |
| return handle_url(video.url, video.from_lang, video.to_lang, video.gender) | |
| async def test(video: VideoURL): | |
| return test_response() | |