Spaces:
Sleeping
Sleeping
Commit
·
025a30b
1
Parent(s):
f684b40
Update app.py
Browse files
app.py
CHANGED
@@ -88,17 +88,6 @@ def score_text(text):
|
|
88 |
max_output_tokens=100,
|
89 |
)
|
90 |
|
91 |
-
|
92 |
-
|
93 |
-
'''prompt_template_name = PromptTemplate(
|
94 |
-
input_variables=['ip'],
|
95 |
-
template="""Score the following transcript : {ip} . Score it out of 5 which can take any float value from 0 to 5 under the following classes in the list:['Depressiveness', 'Suicidal Thoughts', 'Self Esteem', 'Supressiveness', 'Tiredness'] each separated by commas and give the response in one single line without any leading spaces or new line changes directly starting with scores and only write the scores no extra information and if any score is an integer value end it with ".0"""
|
96 |
-
)
|
97 |
-
prompt_template_name.format(ip=text)
|
98 |
-
|
99 |
-
score_chain = LLMChain(llm=llm, prompt=prompt_template_name)
|
100 |
-
scores = score_chain.run(text)'''
|
101 |
-
|
102 |
scores = completion.result
|
103 |
return scores
|
104 |
|
|
|
88 |
max_output_tokens=100,
|
89 |
)
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
scores = completion.result
|
92 |
return scores
|
93 |
|