Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ description = """
|
|
| 35 |
### Word Embedding Demo App
|
| 36 |
Universidade Federal de São Paulo - Escola Paulista de Medicina
|
| 37 |
|
| 38 |
-
The output is
|
| 39 |
|
| 40 |
Credits:
|
| 41 |
* Gensim
|
|
@@ -43,9 +43,6 @@ Credits:
|
|
| 43 |
"""
|
| 44 |
|
| 45 |
Word1 = gr.Textbox()
|
| 46 |
-
Word2 = gr.Textbox()
|
| 47 |
-
Word3 = gr.Textbox()
|
| 48 |
-
label = gr.Label(show_label=True, label="Word4")
|
| 49 |
sp = gr.Image()
|
| 50 |
|
| 51 |
|
|
@@ -72,7 +69,7 @@ examples = [
|
|
| 72 |
|
| 73 |
iface = gr.Interface(
|
| 74 |
fn=inference,
|
| 75 |
-
inputs=[Word1
|
| 76 |
outputs=sp,
|
| 77 |
description=description,
|
| 78 |
examples=examples
|
|
|
|
| 35 |
### Word Embedding Demo App
|
| 36 |
Universidade Federal de São Paulo - Escola Paulista de Medicina
|
| 37 |
|
| 38 |
+
The output is the 10 words most correlated with Word 1. All words must be entered in small caps.
|
| 39 |
|
| 40 |
Credits:
|
| 41 |
* Gensim
|
|
|
|
| 43 |
"""
|
| 44 |
|
| 45 |
Word1 = gr.Textbox()
|
|
|
|
|
|
|
|
|
|
| 46 |
sp = gr.Image()
|
| 47 |
|
| 48 |
|
|
|
|
| 69 |
|
| 70 |
iface = gr.Interface(
|
| 71 |
fn=inference,
|
| 72 |
+
inputs=[Word1],
|
| 73 |
outputs=sp,
|
| 74 |
description=description,
|
| 75 |
examples=examples
|