Spaces:
Runtime error
Runtime error
Commit
·
9d37bcd
1
Parent(s):
1c0c890
update app
Browse files
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:
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
-
"
|
| 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
|
| 42 |
-
"promet d'augmenter exponentiellement les vitesses de calcul.
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
"
|
| 49 |
-
"
|
| 50 |
-
"[START]
|
| 51 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|