mjwong commited on
Commit
f1abc3d
·
verified ·
1 Parent(s): a83cca7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -17,7 +17,24 @@ def classify_text(model_name, text, labels):
17
  return {label: score for label, score in zip(result["labels"], result["scores"])}
18
 
19
  # Example Input
20
- examples = [["One day I will see the world", "travel, live, die, future"]]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  # Define the Gradio interface
23
  css = """
 
17
  return {label: score for label, score in zip(result["labels"], result["scores"])}
18
 
19
  # Example Input
20
+ examples = [
21
+ [
22
+ "The government announced a new economic policy today aimed at reducing inflation and stabilizing the currency market.",
23
+ "economy, politics, finance, policy, inflation, government, currency"
24
+ ],
25
+ [
26
+ "中国的科技公司在人工智能领域取得了重大突破,这可能会影响全球市场。",
27
+ "科技, 经济, 创新, 市场, 人工智能, 全球"
28
+ ],
29
+ [
30
+ "นักวิจัยค้นพบวิธีใหม่ในการรักษาโรคมะเร็ง ซึ่งอาจช่วยชีวิตผู้ป่วยหลายล้านคนทั่วโลก",
31
+ "การแพทย์, วิทยาศาสตร์, นวัตกรรม, สุขภาพ, โรคมะเร็ง, การรักษา"
32
+ ],
33
+ [
34
+ "La conférence des Nations Unies sur le climat a abouti à un nouvel accord pour réduire les émissions de carbone d'ici 2030.",
35
+ "environnement, climat, politique, énergie, carbone, écologie, ONU"
36
+ ]
37
+ ]
38
 
39
  # Define the Gradio interface
40
  css = """