abdulllah01 commited on
Commit
8a7e2df
1 Parent(s): 19d6e2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,11 +4,13 @@ from transformers import GPT2LMHeadModel, GPT2Tokenizer
4
  # Load the model and tokenizer
5
  model_name = "gpt2"
6
  tokenizer = GPT2Tokenizer.from_pretrained(model_name)
 
7
  model = GPT2LMHeadModel.from_pretrained(model_name)
8
 
9
  # Function to create the prompt
10
  def make_prompt(new_title):
11
  prompt = f"""
 
12
  Title: The Benefits of Daily Meditation
13
 
14
  Blog Content:
 
4
  # Load the model and tokenizer
5
  model_name = "gpt2"
6
  tokenizer = GPT2Tokenizer.from_pretrained(model_name)
7
+
8
  model = GPT2LMHeadModel.from_pretrained(model_name)
9
 
10
  # Function to create the prompt
11
  def make_prompt(new_title):
12
  prompt = f"""
13
+ Write a Blog Post On the given Title like the example:
14
  Title: The Benefits of Daily Meditation
15
 
16
  Blog Content: