Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ st.set_page_config(page_title="GPT-2 Text Generator", layout="centered")
|
|
6 |
|
7 |
#tokenizer = AutoTokenizer.from_pretrained("ahmadmac/Pretrained-GPT2")
|
8 |
#model = AutoModelForCausalLM.from_pretrained("ahmadmac/Pretrained-GPT2")
|
9 |
-
tokenizer = AutoTokenizer.from_pretrained("ahmadmac/
|
10 |
-
model = AutoModelForCausalLM.from_pretrained("ahmadmac/
|
11 |
#google_api_key=
|
12 |
import google.generativeai as genai
|
13 |
GOOGLE_API_KEY=os.environ["google_api_key"]
|
|
|
6 |
|
7 |
#tokenizer = AutoTokenizer.from_pretrained("ahmadmac/Pretrained-GPT2")
|
8 |
#model = AutoModelForCausalLM.from_pretrained("ahmadmac/Pretrained-GPT2")
|
9 |
+
tokenizer = AutoTokenizer.from_pretrained("ahmadmac/DistillGPT2-CSV")
|
10 |
+
model = AutoModelForCausalLM.from_pretrained("ahmadmac/DistillGPT2-CSV")
|
11 |
#google_api_key=
|
12 |
import google.generativeai as genai
|
13 |
GOOGLE_API_KEY=os.environ["google_api_key"]
|