omair14 commited on
Commit
28d6912
·
verified ·
1 Parent(s): 2975d43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ except Exception as e:
11
  def generate_blog_post(topic):
12
  try:
13
  # Generate a blog post based on the given topic
14
- command = f"Here is a blog post on the topic - \"{topic}\"": "
15
- command = lower(command)
16
  response = generator(command, max_length=500, num_return_sequences=1)
17
  return response[0]['generated_text'][len(command):]
18
  except Exception as e:
 
11
  def generate_blog_post(topic):
12
  try:
13
  # Generate a blog post based on the given topic
14
+ command = f"Here is a blog post on the topic - \"{topic}\": "
15
+ command = command.lower()
16
  response = generator(command, max_length=500, num_return_sequences=1)
17
  return response[0]['generated_text'][len(command):]
18
  except Exception as e: