Spaces:
Runtime error
Runtime error
Commit
·
b8d8ef1
1
Parent(s):
6d37db9
Update app.py
Browse files
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 |
-
|
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 |
-
|
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 |
)
|