alpcansoydas commited on
Commit
00483df
1 Parent(s): bc3c5ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -15,17 +15,20 @@ llm = HuggingFaceEndpoint(
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>
22
  {TEXT}
23
  </text>
24
-
25
- Answer general topic not specific words.
26
- Your answer must not contain specific information from given text answer just general topic.
27
- Answer shortly with two or three word phrases not with long sentence.
28
- If you do not know the topic just answer as General.
29
  '''
30
 
31
  template_json = '''
 
15
  )
16
 
17
  template_classify = '''
18
+ You are a topic detector bot. Your task is to determine the main topic of given text phrase.
19
+
20
+ Answer general main topic not specific words.
21
+ Your answer does not contain specific information from given text.
22
+ Answer just general main topic.
23
+ Answer shortly with two or three word phrases.
24
+ Do not answer long sentence.
25
+ If you do not know the topic just answer as General.
26
+
27
  What is the main topic of given text?:
28
 
29
  <text>
30
  {TEXT}
31
  </text>
 
 
 
 
 
32
  '''
33
 
34
  template_json = '''