userIdc2024 commited on
Commit
3906f87
·
verified ·
1 Parent(s): 2a2f674

Update vmain.py

Browse files
Files changed (1) hide show
  1. vmain.py +2 -3
vmain.py CHANGED
@@ -1,7 +1,6 @@
1
  from fastapi import FastAPI, HTTPException
2
  from fastapi.middleware.cors import CORSMiddleware
3
- from pydantic import BaseModel, Json
4
- from typing import Any
5
 
6
  from vapp import get_analysis, AdAnalysis
7
 
@@ -16,7 +15,7 @@ class GenerateRequest(BaseModel):
16
  video_url: str
17
 
18
  class GenerateResponse(BaseModel):
19
- analysis: Json[Any]
20
 
21
  @app.get("/health")
22
  def health():
 
1
  from fastapi import FastAPI, HTTPException
2
  from fastapi.middleware.cors import CORSMiddleware
3
+ from pydantic import BaseModel
 
4
 
5
  from vapp import get_analysis, AdAnalysis
6
 
 
15
  video_url: str
16
 
17
  class GenerateResponse(BaseModel):
18
+ analysis: AdAnalysis
19
 
20
  @app.get("/health")
21
  def health():