Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def clean_word(word):
|
|
| 33 |
|
| 34 |
def main():
|
| 35 |
st.title("Word Vector Arithmetic Playground")
|
| 36 |
-
st.write("Experiment with word vector arithmetic! Example: `Tokyo - Japan +
|
| 37 |
|
| 38 |
# Load the model
|
| 39 |
model = load_fasttext_model()
|
|
@@ -42,7 +42,7 @@ def main():
|
|
| 42 |
return
|
| 43 |
|
| 44 |
st.header("Vector Arithmetic")
|
| 45 |
-
operation = st.text_input("Enter your word vector operation:", "Tokyo - Japan +
|
| 46 |
operation = operation.split()
|
| 47 |
|
| 48 |
if st.button("Compute"):
|
|
|
|
| 33 |
|
| 34 |
def main():
|
| 35 |
st.title("Word Vector Arithmetic Playground")
|
| 36 |
+
st.write("Experiment with word vector arithmetic! Example: `Tokyo - Japan + U.K.`")
|
| 37 |
|
| 38 |
# Load the model
|
| 39 |
model = load_fasttext_model()
|
|
|
|
| 42 |
return
|
| 43 |
|
| 44 |
st.header("Vector Arithmetic")
|
| 45 |
+
operation = st.text_input("Enter your word vector operation:", "Tokyo - Japan + U.K.")
|
| 46 |
operation = operation.split()
|
| 47 |
|
| 48 |
if st.button("Compute"):
|