badalsahani commited on
Commit
8c5fdf0
·
1 Parent(s): 45e6d3a

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +5 -1
app/main.py CHANGED
@@ -1,6 +1,6 @@
1
  from fastapi import FastAPI, UploadFile
2
  from pydantic import BaseModel
3
- from .functions import handle_url, get_health
4
 
5
 
6
  class VideoURL(BaseModel):
@@ -21,3 +21,7 @@ async def main():
21
  @app.post("/synthesize_video_url")
22
  async def synthesize_video_url(video: VideoURL):
23
  return handle_url(video.url, video.from_lang, video.to_lang, video.gender)
 
 
 
 
 
1
  from fastapi import FastAPI, UploadFile
2
  from pydantic import BaseModel
3
+ from .functions import handle_url, get_health, test_response
4
 
5
 
6
  class VideoURL(BaseModel):
 
21
  @app.post("/synthesize_video_url")
22
  async def synthesize_video_url(video: VideoURL):
23
  return handle_url(video.url, video.from_lang, video.to_lang, video.gender)
24
+
25
+ @app.post("/synthesize_video_url")
26
+ async def test(video: VideoURL):
27
+ return test_response()