Upload folder using huggingface_hub
Browse files- server/app.py +6 -2
server/app.py
CHANGED
|
@@ -35,12 +35,16 @@ except Exception as e: # pragma: no cover
|
|
| 35 |
"openenv is required for the web interface. Install dependencies with '\n uv sync\n'"
|
| 36 |
) from e
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
try:
|
| 39 |
from models import SqlAction, SqlObservation
|
| 40 |
from server.sql_env_environment import SqlEnvironment
|
| 41 |
except ModuleNotFoundError:
|
| 42 |
-
from
|
| 43 |
-
from
|
| 44 |
|
| 45 |
|
| 46 |
# Create the app with web interface and README integration
|
|
|
|
| 35 |
"openenv is required for the web interface. Install dependencies with '\n uv sync\n'"
|
| 36 |
) from e
|
| 37 |
|
| 38 |
+
import sys
|
| 39 |
+
import os
|
| 40 |
+
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
| 41 |
+
|
| 42 |
try:
|
| 43 |
from models import SqlAction, SqlObservation
|
| 44 |
from server.sql_env_environment import SqlEnvironment
|
| 45 |
except ModuleNotFoundError:
|
| 46 |
+
from server.models import SqlAction, SqlObservation
|
| 47 |
+
from server.sql_env_environment import SqlEnvironment
|
| 48 |
|
| 49 |
|
| 50 |
# Create the app with web interface and README integration
|