akdeniz27 commited on
Commit
0eb19c8
1 Parent(s): a6b9335

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -8,9 +8,11 @@ text_1 = """Bilim insanları Botsvana’da Covid-19’un şu ana kadar en çok m
8
  Resmi olarak B.1.1.529 koduyla bilinen bu varyantı ise “Nu varyantı” adı verildi. Uzmanlar bu varyant içerisinde \
9
  tam 32 farklı mutasyon tespit edildiğini açıklarken, bu virüsün corona virüsü aşılarına karşı daha dirençli olabileceğini duyurdu."""
10
 
11
- text_2 = """Lionel Messi starred as Argentina progressed to the quarter-finals of the World Cup with a 2-1 win over Australia. \
12
- Messi marked the 1,000th senior game of his career with a measured finish for the breakthrough goal late in the first half, and \
13
- Mat Ryan's error allowed Julian Alvarez to double the advantage early in the second."""
 
 
14
 
15
  @st.cache(allow_output_mutation=True)
16
  def list2text(label_list):
@@ -21,7 +23,7 @@ def list2text(label_list):
21
  return labels
22
 
23
  label_list_1 = ["dünya", "ekonomi", "kültür", "sağlık", "siyaset", "spor", "teknoloji"]
24
- label_list_2 = ["world", "economy", "culture", "health", "politics", "sport", "technology"]
25
 
26
  st.title("Multilingual Zero-Shot Text Classification with mT5")
27
 
 
8
  Resmi olarak B.1.1.529 koduyla bilinen bu varyantı ise “Nu varyantı” adı verildi. Uzmanlar bu varyant içerisinde \
9
  tam 32 farklı mutasyon tespit edildiğini açıklarken, bu virüsün corona virüsü aşılarına karşı daha dirençli olabileceğini duyurdu."""
10
 
11
+ text_2 = """Argentina beat Australia 2-1 on Saturday and will take on the Netherlands in the World Cup quarterfinals. \
12
+ It was a historic night for Lionel Messi as the Argentine superstar took to the pitch for his 1,000th match for club and country. \
13
+ He also scored in the match. Messi scored the opening goal in the 35th minute as his low shot in the box beat Australian goalkeeper Mathew Ryan. \
14
+ The Paris Saint-Germain forward netted his first-ever World Cup knockout stage goal as Argentina went into halftime leading at Ar-Rayyan's Ahmad Bin Ali Stadium. \
15
+ The goal surpassed Argentine legend Diego Maradona's World Cup goal tally when Messi scored his ninth goal."""
16
 
17
  @st.cache(allow_output_mutation=True)
18
  def list2text(label_list):
 
23
  return labels
24
 
25
  label_list_1 = ["dünya", "ekonomi", "kültür", "sağlık", "siyaset", "spor", "teknoloji"]
26
+ label_list_2 = ["world", "economy", "culture", "health", "politics", "sports", "technology"]
27
 
28
  st.title("Multilingual Zero-Shot Text Classification with mT5")
29