Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,14 +3,18 @@ import requests
|
|
3 |
import logging
|
4 |
import threading
|
5 |
import time
|
|
|
6 |
from fastapi import FastAPI
|
7 |
from pydantic import BaseModel
|
|
|
8 |
|
9 |
class Settings(BaseModel):
|
10 |
-
arbitrary_types_allowed = True
|
11 |
|
12 |
app = FastAPI()
|
13 |
app.config = Settings()
|
|
|
|
|
14 |
# 로깅 설정
|
15 |
logging.basicConfig(level=logging.INFO)
|
16 |
|
|
|
3 |
import logging
|
4 |
import threading
|
5 |
import time
|
6 |
+
|
7 |
from fastapi import FastAPI
|
8 |
from pydantic import BaseModel
|
9 |
+
from typing import ClassVar
|
10 |
|
11 |
class Settings(BaseModel):
|
12 |
+
arbitrary_types_allowed: ClassVar[bool] = True
|
13 |
|
14 |
app = FastAPI()
|
15 |
app.config = Settings()
|
16 |
+
|
17 |
+
|
18 |
# 로깅 설정
|
19 |
logging.basicConfig(level=logging.INFO)
|
20 |
|