Spaces:
Sleeping
Sleeping
Corrected model name
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
|
| 6 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 7 |
|
| 8 |
# Load the fine-tuned model and tokenizer
|
| 9 |
-
model_name = "aarohanverma/
|
| 10 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name, torch_dtype=torch.bfloat16).to(device)
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-base")
|
| 12 |
|
|
|
|
| 6 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 7 |
|
| 8 |
# Load the fine-tuned model and tokenizer
|
| 9 |
+
model_name = "aarohanverma/text2sql-flan-t5-base-qlora-finetuned" # Replace with your model repository name
|
| 10 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name, torch_dtype=torch.bfloat16).to(device)
|
| 11 |
tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-base")
|
| 12 |
|