Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ model_name = "gpt2-large"
|
|
6 |
model = GPT2LMHeadModel.from_pretrained(model_name)
|
7 |
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
|
8 |
|
9 |
-
title = st.
|
10 |
|
11 |
if title:
|
12 |
input_prompt = f"Blog Title: {title}\n\nBlog Post:\n"
|
|
|
6 |
model = GPT2LMHeadModel.from_pretrained(model_name)
|
7 |
tokenizer = GPT2Tokenizer.from_pretrained(model_name)
|
8 |
|
9 |
+
title = st.text_input("Enter a title to generate a blog post:")
|
10 |
|
11 |
if title:
|
12 |
input_prompt = f"Blog Title: {title}\n\nBlog Post:\n"
|