Gayatrikh16 commited on
Commit
5f73c85
·
verified ·
1 Parent(s): 84a9d40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=50):
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}.