Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,14 +16,14 @@ llm = HuggingFaceEndpoint(
|
|
16 |
repo_id="mistralai/Mistral-7B-Instruct-v0.3",
|
17 |
huggingfacehub_api_token=HF_TOKEN,
|
18 |
temperature=0.7,
|
19 |
-
max_new_tokens=
|
20 |
)
|
21 |
|
22 |
# Define a prompt template for generating a blog
|
23 |
TEMPLATE = """
|
24 |
Write a detailed blog post on the following topic:
|
25 |
Topic: {topic}
|
26 |
-
Make sure the blog post is informative, engaging, well-structured, and complete in
|
27 |
"""
|
28 |
|
29 |
# Create a prompt template instance
|
|
|
16 |
repo_id="mistralai/Mistral-7B-Instruct-v0.3",
|
17 |
huggingfacehub_api_token=HF_TOKEN,
|
18 |
temperature=0.7,
|
19 |
+
max_new_tokens=700
|
20 |
)
|
21 |
|
22 |
# Define a prompt template for generating a blog
|
23 |
TEMPLATE = """
|
24 |
Write a detailed blog post on the following topic:
|
25 |
Topic: {topic}
|
26 |
+
Make sure the blog post is informative, engaging, well-structured, and complete in 500 words only.
|
27 |
"""
|
28 |
|
29 |
# Create a prompt template instance
|