Tonic commited on
Commit
8269ab1
1 Parent(s): 496a0f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -39,6 +39,7 @@ class SQLQueryGenerator:
39
  return prompt
40
 
41
  def run_inference(self, question):
 
42
  prompt = self.generate_prompt(question)
43
  eos_token_id = self.tokenizer.eos_token_id
44
  pipe = pipeline(
 
39
  return prompt
40
 
41
  def run_inference(self, question):
42
+ self.model.to('cuda')
43
  prompt = self.generate_prompt(question)
44
  eos_token_id = self.tokenizer.eos_token_id
45
  pipe = pipeline(