themissingCRAM
commited on
Commit
·
cf29376
1
Parent(s):
8d06cd8
space and zerogpu
Browse files- app.py +6 -0
- requirements.txt +1 -0
app.py
CHANGED
@@ -14,10 +14,16 @@ from sqlalchemy import (
|
|
14 |
inspect,
|
15 |
text,
|
16 |
)
|
|
|
17 |
|
18 |
engine = create_engine("sqlite:///:memory:")
|
19 |
|
20 |
|
|
|
|
|
|
|
|
|
|
|
21 |
@tool
|
22 |
def sql_engine(query: str) -> str:
|
23 |
"""
|
|
|
14 |
inspect,
|
15 |
text,
|
16 |
)
|
17 |
+
import spaces
|
18 |
|
19 |
engine = create_engine("sqlite:///:memory:")
|
20 |
|
21 |
|
22 |
+
@spaces.GPU
|
23 |
+
def dummy():
|
24 |
+
pass
|
25 |
+
|
26 |
+
|
27 |
@tool
|
28 |
def sql_engine(query: str) -> str:
|
29 |
"""
|
requirements.txt
CHANGED
@@ -3,3 +3,4 @@ smolagents>=1.12.0
|
|
3 |
python-dotenv==1.1.0
|
4 |
sqlalchemy==2.0.40
|
5 |
gradio>=5.23.1
|
|
|
|
3 |
python-dotenv==1.1.0
|
4 |
sqlalchemy==2.0.40
|
5 |
gradio>=5.23.1
|
6 |
+
spaces>0.0.0
|