Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,27 @@ Please carefully read the following text. The text is written in {LANG} language
|
|
23 |
</text>
|
24 |
|
25 |
After reading it, I want you to extract topic informations from text in {LANG} language.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
'''
|
27 |
|
28 |
template_json = '''
|
@@ -32,8 +53,6 @@ Your task is to read the following text, convert it to json format using 'Answer
|
|
32 |
</text>
|
33 |
|
34 |
Your final response MUST contain only the response, no other text.
|
35 |
-
Example:
|
36 |
-
{{"Answer":["Sport", "Entertainment", "General", "Inflation", "Effects of Inflation"]]}}
|
37 |
'''
|
38 |
json_output_parser = JsonOutputParser()
|
39 |
|
|
|
23 |
</text>
|
24 |
|
25 |
After reading it, I want you to extract topic informations from text in {LANG} language.
|
26 |
+
|
27 |
+
Examples:
|
28 |
+
Input:
|
29 |
+
"""
|
30 |
+
ÖĞRETMENLERE REKOR BANKA PROMOSYONU!
|
31 |
+
|
32 |
+
Kağıthane-Akbank 3 yıllık Banka Promosyonu olarak 61.100 TL teklif etti!
|
33 |
+
"""
|
34 |
+
Output: ["Banka Promosyonları", "Banka Promosyonu", "Fiyat Teklifi"]
|
35 |
+
|
36 |
+
Input:
|
37 |
+
"""
|
38 |
+
Berk Göl: "Emin Bayram Galatasaray'da hazırlık maçlarında 'ben sakatım' diyerek oynamadı. Galatasaray sana kötü bir şey yapmadı Emin!"
|
39 |
+
"""
|
40 |
+
Output: ["Futbolcu Davranışı", "Futbol Takımına Yönelik Eleştiri"]
|
41 |
+
|
42 |
+
Input:
|
43 |
+
"""
|
44 |
+
İsrail Savunma Bakanı Yoav Gallant, öldürülen Muhammed El-Deif'in isminin üstünü çizerken çekilen fotoğrafı yayınladı.
|
45 |
+
"""
|
46 |
+
Output: ["Ortadoğudaki çatışmalar"]
|
47 |
'''
|
48 |
|
49 |
template_json = '''
|
|
|
53 |
</text>
|
54 |
|
55 |
Your final response MUST contain only the response, no other text.
|
|
|
|
|
56 |
'''
|
57 |
json_output_parser = JsonOutputParser()
|
58 |
|