Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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:
|