Spaces:
Runtime error
Runtime error
Mustehson
commited on
Commit
Β·
1d603b6
1
Parent(s):
86aebc8
Added GPU Duration
Browse files- app.py +1 -1
- requirements.txt +3 -11
app.py
CHANGED
|
@@ -78,7 +78,7 @@ def get_prompt(schema, query_input):
|
|
| 78 |
return text
|
| 79 |
|
| 80 |
# Generate SQL
|
| 81 |
-
@spaces.GPU
|
| 82 |
def text2sql(table, query_input):
|
| 83 |
if table is None:
|
| 84 |
return {
|
|
|
|
| 78 |
return text
|
| 79 |
|
| 80 |
# Generate SQL
|
| 81 |
+
@spaces.GPU(duration=120)
|
| 82 |
def text2sql(table, query_input):
|
| 83 |
if table is None:
|
| 84 |
return {
|
requirements.txt
CHANGED
|
@@ -1,12 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
numpy<=1.26.4
|
| 3 |
-
httpx
|
| 4 |
-
huggingface_hub
|
| 5 |
-
python-dotenv
|
| 6 |
-
scikit-build-core
|
| 7 |
-
duckdb
|
| 8 |
-
gradio
|
| 9 |
-
transformers
|
| 10 |
bitsandbytes
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 1 |
+
accelerate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
bitsandbytes
|
| 3 |
+
transformers
|
| 4 |
+
duckdb
|