mabbas125 commited on
Commit
78246a8
·
verified ·
1 Parent(s): dc7e00e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("cuda")
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,