Spaces:
Running
Running
nileshhanotia
commited on
Commit
•
0d53dda
1
Parent(s):
9e11341
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
|
4 |
-
model_name = "
|
5 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
6 |
-
model = AutoModelForCausalLM.from_pretrained(
|
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
|