Testys commited on
Commit
8578c0e
1 Parent(s): 5435feb

Requirements

Browse files
Files changed (1) hide show
  1. main.py +2 -3
main.py CHANGED
@@ -7,7 +7,7 @@ from fastapi.responses import JSONResponse
7
  from pydantic import AnyHttpUrl, BaseModel, UrlConstraints
8
  from contextlib import asynccontextmanager
9
 
10
- from config import Settings, get_settings
11
  import uvicorn
12
  from utils.audio_utils import AudioUtils
13
  from utils.caption_utils import ImageCaptioning
@@ -72,8 +72,7 @@ async def health():
72
  async def generate_topic(
73
  img: UploadFile = File(None),
74
  text: Optional[str] = Form(None),
75
- img_url: Optional[AnyHttpUrl] = Form(None),
76
- settings: Settings = Depends(get_settings)
77
  ):
78
  try:
79
  if img_url and img:
 
7
  from pydantic import AnyHttpUrl, BaseModel, UrlConstraints
8
  from contextlib import asynccontextmanager
9
 
10
+ from config import get_settings
11
  import uvicorn
12
  from utils.audio_utils import AudioUtils
13
  from utils.caption_utils import ImageCaptioning
 
72
  async def generate_topic(
73
  img: UploadFile = File(None),
74
  text: Optional[str] = Form(None),
75
+ img_url: Optional[AnyHttpUrl] = Form(None)
 
76
  ):
77
  try:
78
  if img_url and img: