Belligerent commited on
Commit
c338442
·
verified ·
1 Parent(s): 7dd3b75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -14,10 +14,10 @@ def wsd_gen(word, context, d1, d2, d3):
14
  examples = [["beat", 'The underdog team "beat" the reigning champion.', " A main accent or rhythmic unit in music or poetry. " , " To strike repeatedly and violently so as to hurt or injure.", " To defeat (someone) in a game or other competitive situation. "], ["shell", 'The first "shell" exploded in mid air taking out an enemy plane.', "The hard protective outer case of a mollusk or crustacean.", "An explosive artillery projectile or bomb.", "Something resembling or likened to a shell because of its shape or its function as an outer case."]]
15
 
16
  word_mask = gr.Textbox(lines=1, placeholder= "Enter word to disambiguate", default="", label = "Based on the context, which description best matches this word: ")
17
- input_context = gr.Textbox(lines=1, placeholder="Enter context", default="", label = "context: ")
18
- input_desc1 = gr.Textbox(lines=1, placeholder="Enter description", default="", label = "description 1: ")
19
- input_desc2 = gr.Textbox(lines=1, placeholder="Enter description", default="", label = "description 2: ")
20
- input_desc3 = gr.Textbox(lines=1, placeholder="Enter description", default="", label = "description 3: ")
21
 
22
  gr.Interface(wsd_gen,
23
  inputs = [word_mask , input_context, input_desc1, input_desc2, input_desc3],
 
14
  examples = [["beat", 'The underdog team "beat" the reigning champion.', " A main accent or rhythmic unit in music or poetry. " , " To strike repeatedly and violently so as to hurt or injure.", " To defeat (someone) in a game or other competitive situation. "], ["shell", 'The first "shell" exploded in mid air taking out an enemy plane.', "The hard protective outer case of a mollusk or crustacean.", "An explosive artillery projectile or bomb.", "Something resembling or likened to a shell because of its shape or its function as an outer case."]]
15
 
16
  word_mask = gr.Textbox(lines=1, placeholder= "Enter word to disambiguate", default="", label = "Based on the context, which description best matches this word: ")
17
+ input_context = gr.Textbox(lines=1, placeholder="Enter context", label = "context: ")
18
+ input_desc1 = gr.Textbox(lines=1, placeholder="Enter description", label = "description 1: ")
19
+ input_desc2 = gr.Textbox(lines=1, placeholder="Enter description", label = "description 2: ")
20
+ input_desc3 = gr.Textbox(lines=1, placeholder="Enter description", label = "description 3: ")
21
 
22
  gr.Interface(wsd_gen,
23
  inputs = [word_mask , input_context, input_desc1, input_desc2, input_desc3],