Spaces:
Running
Running
Tecnhotron
commited on
Commit
·
13fb640
1
Parent(s):
68b704f
First
Browse files
api.py
CHANGED
@@ -38,17 +38,9 @@ log_file_path = "app.log"
|
|
38 |
logging.basicConfig(
|
39 |
level=logging.INFO,
|
40 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
41 |
-
force=True,
|
42 |
-
handlers=[
|
43 |
-
logging.FileHandler(log_file_path),
|
44 |
-
logging.StreamHandler()
|
45 |
-
]
|
46 |
)
|
47 |
logger = logging.getLogger(__name__)
|
48 |
|
49 |
-
# StreamConfig, StreamingResponseGenerator, and create_streaming_response
|
50 |
-
# are now imported from streaming.py to reduce duplication.
|
51 |
-
|
52 |
@dataclass
|
53 |
class Config:
|
54 |
lmarena_url: str = "https://beta.lmarena.ai/?mode=direct"
|
|
|
38 |
logging.basicConfig(
|
39 |
level=logging.INFO,
|
40 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
|
|
|
|
|
|
|
|
|
|
41 |
)
|
42 |
logger = logging.getLogger(__name__)
|
43 |
|
|
|
|
|
|
|
44 |
@dataclass
|
45 |
class Config:
|
46 |
lmarena_url: str = "https://beta.lmarena.ai/?mode=direct"
|