Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -32,10 +32,11 @@ from datetime import datetime as dt
|
|
32 |
from dotenv import load_dotenv
|
33 |
from bs4 import BeautifulSoup
|
34 |
|
35 |
-
from typing import
|
36 |
from typing_extensions import Annotated
|
37 |
from typing import Annotated, Union
|
38 |
-
from typing import Optional
|
|
|
39 |
|
40 |
from pydantic import BaseModel
|
41 |
from base64 import b64decode as kc
|
@@ -203,7 +204,7 @@ def get_profile_clone(user_id):
|
|
203 |
return None
|
204 |
|
205 |
class CustomErrorResponseModel(BaseModel):
|
206 |
-
detail:
|
207 |
|
208 |
class SuccessResponse(BaseModel):
|
209 |
status: str
|
|
|
32 |
from dotenv import load_dotenv
|
33 |
from bs4 import BeautifulSoup
|
34 |
|
35 |
+
from typing import *
|
36 |
from typing_extensions import Annotated
|
37 |
from typing import Annotated, Union
|
38 |
+
from typing import Optional, List, Dict, Any
|
39 |
+
|
40 |
|
41 |
from pydantic import BaseModel
|
42 |
from base64 import b64decode as kc
|
|
|
204 |
return None
|
205 |
|
206 |
class CustomErrorResponseModel(BaseModel):
|
207 |
+
detail: List[Dict[str, Any]]
|
208 |
|
209 |
class SuccessResponse(BaseModel):
|
210 |
status: str
|