Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ template_classify = '''
|
|
20 |
{TEXT}
|
21 |
</text>
|
22 |
|
23 |
-
|
24 |
'''
|
25 |
|
26 |
template_json = '''
|
@@ -28,11 +28,12 @@ Your task is to read the following text, convert it to json format using 'Answer
|
|
28 |
<text>
|
29 |
{RESPONSE}
|
30 |
</text>
|
|
|
31 |
|
|
|
32 |
Your final response MUST contain only the response, no other text.
|
33 |
Example:
|
34 |
-
{{"Answer":["Futbol Maçı"]}}
|
35 |
-
'''
|
36 |
|
37 |
json_output_parser = JsonOutputParser()
|
38 |
|
|
|
20 |
{TEXT}
|
21 |
</text>
|
22 |
|
23 |
+
What is the topic of given text? Answer shortly.:
|
24 |
'''
|
25 |
|
26 |
template_json = '''
|
|
|
28 |
<text>
|
29 |
{RESPONSE}
|
30 |
</text>
|
31 |
+
'''
|
32 |
|
33 |
+
'''
|
34 |
Your final response MUST contain only the response, no other text.
|
35 |
Example:
|
36 |
+
{{"Answer":["Futbol Maçı"]}}'''
|
|
|
37 |
|
38 |
json_output_parser = JsonOutputParser()
|
39 |
|