nikshep01 commited on
Commit
0a144a1
·
verified ·
1 Parent(s): e346ce5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,8 +1,8 @@
1
- from transformers import GPT2Tokenizer, GPT2LMHeadModel
2
 
3
- # Load pre-trained model and tokenizer
4
  tokenizer = GPT2Tokenizer.from_pretrained("EleutherAI/gpt-neo-2.7B")
5
- model = GPT2LMHeadModel.from_pretrained("EleutherAI/gpt-neo-2.7B")
6
 
7
  # Input text description for UI
8
  input_text = "Generate a login form with username, password, and a submit button."
 
1
+ from transformers import GPT2Tokenizer, GPTNeoForCausalLM
2
 
3
+ # Load the tokenizer and model for GPT-Neo
4
  tokenizer = GPT2Tokenizer.from_pretrained("EleutherAI/gpt-neo-2.7B")
5
+ model = GPTNeoForCausalLM.from_pretrained("EleutherAI/gpt-neo-2.7B")
6
 
7
  # Input text description for UI
8
  input_text = "Generate a login form with username, password, and a submit button."