Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ async def generate_sql(request: QuestionRequest):
|
|
102 |
"""
|
103 |
|
104 |
# Generate SQL query
|
105 |
-
inputs = tokenizer(prompt, return_tensors="pt").to("
|
106 |
generated_ids = model.generate(
|
107 |
**inputs,
|
108 |
num_return_sequences=1,
|
|
|
102 |
"""
|
103 |
|
104 |
# Generate SQL query
|
105 |
+
inputs = tokenizer(prompt, return_tensors="pt").to("cpu")
|
106 |
generated_ids = model.generate(
|
107 |
**inputs,
|
108 |
num_return_sequences=1,
|