Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
5 |
pipe = pipeline("text2text-generation", model="google/flan-t5-small")
|
6 |
|
7 |
# Function to get response from the model
|
8 |
-
def get_response(input_text, keywords, blog_style, max_new_tokens=
|
9 |
# Prompt Template
|
10 |
template = """
|
11 |
Generate technical project ideas for {blog_style} job profile for a topic {input_text} using these keywords: {keywords}.
|
|
|
5 |
pipe = pipeline("text2text-generation", model="google/flan-t5-small")
|
6 |
|
7 |
# Function to get response from the model
|
8 |
+
def get_response(input_text, keywords, blog_style, max_new_tokens=250):
|
9 |
# Prompt Template
|
10 |
template = """
|
11 |
Generate technical project ideas for {blog_style} job profile for a topic {input_text} using these keywords: {keywords}.
|