Spaces:
Runtime error
Runtime error
Update app2.py
Browse files
app2.py
CHANGED
@@ -1,21 +1,3 @@
|
|
1 |
-
from pydantic_settings import BaseSettings
|
2 |
-
|
3 |
-
class Settings(BaseSettings):
|
4 |
-
# Define the database fields explicitly
|
5 |
-
db_host: str
|
6 |
-
db_user: str
|
7 |
-
db_password: str
|
8 |
-
db_name: str
|
9 |
-
|
10 |
-
class Config:
|
11 |
-
# Optional: if you want to allow extra fields
|
12 |
-
# extra = "allow"
|
13 |
-
|
14 |
-
settings = Settings()
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
import asyncio
|
20 |
import gradio as gr
|
21 |
import logging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import asyncio
|
2 |
import gradio as gr
|
3 |
import logging
|