nileshhanotia commited on
Commit
0d53dda
1 Parent(s): 9e11341

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
- model_name = "defog/sqlcoder-7b-2"
5
- tokenizer = AutoTokenizer.from_pretrained(model_name)
6
- model = AutoModelForCausalLM.from_pretrained(model_name)
7
 
8
  def generate_sql(natural_language_query):
9
  # Define your SQL generation logic here
 
1
  import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
+ model_name = "premai-io/prem-1B-SQL"
5
+ tokenizer = AutoTokenizer.from_pretrained("premai-io/prem-1B-SQL")
6
+ model = AutoModelForCausalLM.from_pretrained("premai-io/prem-1B-SQL")
7
 
8
  def generate_sql(natural_language_query):
9
  # Define your SQL generation logic here