Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ llm = HuggingFaceEndpoint(
|
|
15 |
)
|
16 |
|
17 |
template_classify = '''
|
|
|
18 |
What is the main topic of given text?:
|
19 |
|
20 |
<text>
|
@@ -22,7 +23,8 @@ What is the main topic of given text?:
|
|
22 |
</text>
|
23 |
|
24 |
Answer generally not specifically, your response should not contain specific information from given text just general topic.
|
25 |
-
Answer shortly with two or three word phrases not with long sentence
|
|
|
26 |
'''
|
27 |
|
28 |
template_json = '''
|
|
|
15 |
)
|
16 |
|
17 |
template_classify = '''
|
18 |
+
You are a main topic detector system. Your task is to determine the main topic of given text.
|
19 |
What is the main topic of given text?:
|
20 |
|
21 |
<text>
|
|
|
23 |
</text>
|
24 |
|
25 |
Answer generally not specifically, your response should not contain specific information from given text just general topic.
|
26 |
+
Answer shortly with two or three word phrases not with long sentence.
|
27 |
+
If you do not know the topic just answer as General.
|
28 |
'''
|
29 |
|
30 |
template_json = '''
|