emanuelaboros commited on
Commit
9d37bcd
·
1 Parent(s): 1c0c890

update app

Browse files
Files changed (1) hide show
  1. app.py +19 -15
app.py CHANGED
@@ -26,10 +26,10 @@ demo = gr.Interface(
26
  gr.Textbox(
27
  label="Input Sentences:",
28
  lines=5,
29
- placeholder="Enter your sentence here in the following format: \\ `It is reported in [START] Paris [END], "
30
- "that the opening of the chambers will take place on the 27th January.' \\ "
31
- "This format ensures that the model knows which entities to disambiguate, more exactly the entity should "
32
- "be surrounded by `[START]` and `[END]`.",
33
  )
34
  ],
35
  outputs=[gr.Textbox(label="Predictions")],
@@ -38,17 +38,21 @@ demo = gr.Interface(
38
  allow_flagging="never",
39
  # Here we introduce a new tag, examples, easy to use examples for your application
40
  examples=[
41
- "Des chercheurs de l' [START] Université de Cambridge [END] ont développé une nouvelle technique de calcul quantique qui "
42
- "promet d'augmenter exponentiellement les vitesses de calcul. Cette percée, décrite comme un 'bond quantique' "
43
- "dans la technologie informatique, pourrait ouvrir la voie à des capacités de traitement de données "
44
- "ultra-rapides et sécurisées. Le rapport complet sur ces découvertes a été publié dans la "
45
- "prestigieuse revue 'Nature Physics'. ([START] Reuters [END])",
46
- "In the [START] year 1789 [END], [START] King Louis XVI, ruler of France [END], convened the Estates-General at the [START] Palace of Versailles [END], "
47
- "where Marie Antoinette, the Queen of France, alongside Maximilien Robespierre, a leading member of the National Assembly, "
48
- "debated with [START] Jean-Jacques Rousseau, the famous philosopher [END], and [START] Charles de Talleyrand, the Bishop of Autun [END], "
49
- "regarding the future of the French monarchy. At the same time, across the Atlantic in Philadelphia, "
50
- "[START] George Washington, the first President of the United States [END], and [START] Thomas Jefferson, the nation's Secretary of State [END], "
51
- "were drafting policies for the newly established American government following the signing of the Constitution.",
 
 
 
 
52
  ],
53
  )
54
  demo.launch()
 
26
  gr.Textbox(
27
  label="Input Sentences:",
28
  lines=5,
29
+ placeholder="Enter your sentence here in the following format: // << We are going to [START] Paris [END]. >>"
30
+ " // This format ensures that the model knows which entities to disambiguate, more exactly the "
31
+ "entity should be surrounded by `[START]` and `[END]`. // "
32
+ "!Only one entity per sentence is supported at the moment!",
33
  )
34
  ],
35
  outputs=[gr.Textbox(label="Predictions")],
 
38
  allow_flagging="never",
39
  # Here we introduce a new tag, examples, easy to use examples for your application
40
  examples=[
41
+ "Des chercheurs de l' [START] Université de Cambridge [END] ont développé une nouvelle technique de calcul "
42
+ "quantique qui promet d'augmenter exponentiellement les vitesses de calcul.",
43
+ "Le rapport complet sur ces découvertes a été publié dans la prestigieuse revue 'Nature Physics'. ([START] "
44
+ "Reuters [END])",
45
+ "In the [START] year 1789 [END], the Estates-General was convened in France.",
46
+ "[START] King Louis XVI, ruler of France [END], called for the meeting.",
47
+ "The event was held at the [START] Palace of Versailles [END], a symbol of French monarchy.",
48
+ "At Versailles, Marie Antoinette, the Queen of France, was involved in discussions.",
49
+ "Maximilien Robespierre, a leading member of the National Assembly, also participated.",
50
+ "[START] Jean-Jacques Rousseau, the famous philosopher [END], was a significant figure in the debate.",
51
+ "Another important participant was [START] Charles de Talleyrand, the Bishop of Autun [END].",
52
+ "Meanwhile, across the Atlantic, [START] George Washington, the first President of the United States [END], "
53
+ "was shaping policies.",
54
+ "[START] Thomas Jefferson, the nation's Secretary of State [END], played a key role in drafting policies for "
55
+ "the new American government.",
56
  ],
57
  )
58
  demo.launch()