deepakchawla-cb commited on
Commit
b8d8ef1
·
1 Parent(s): 6d37db9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -12,9 +12,7 @@ def get_insurance_heading(data,insurance_prompt):
12
 
13
  llm = OpenAI(temperature=0,openai_api_key=api_key)
14
 
15
- # prompt_template = """this is article content and my user is insurance industry now give me user specific or we can personalize heading hook line for article, which can include something related to the industry with respect to the content and need only article heading nothing else
16
-
17
- # article content: {text} """
18
  PROMPT = PromptTemplate(
19
  template=insurance_prompt, input_variables=["text"]
20
  )
@@ -28,9 +26,8 @@ def get_sports_heading(data,sports_prompt):
28
 
29
  llm = OpenAI(temperature=0,openai_api_key=api_key)
30
 
31
- # prompt_template = """this is article content and my user is sports industry now give me user specific or we can personalize heading hook line for article, which can include something related to the industry with respect to the content and need only article heading nothing else
32
 
33
- # article content: {text} """
34
  PROMPT = PromptTemplate(
35
  template=sports_prompt, input_variables=["text"]
36
  )
 
12
 
13
  llm = OpenAI(temperature=0,openai_api_key=api_key)
14
 
15
+ prompt_template = "prompt: " + insurance_prompt + " and article content: {text} "
 
 
16
  PROMPT = PromptTemplate(
17
  template=insurance_prompt, input_variables=["text"]
18
  )
 
26
 
27
  llm = OpenAI(temperature=0,openai_api_key=api_key)
28
 
29
+ prompt_template = "prompt: " + sports_prompt + " and article content: {text} "
30
 
 
31
  PROMPT = PromptTemplate(
32
  template=sports_prompt, input_variables=["text"]
33
  )