Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,22 +13,20 @@ st.markdown(
|
|
13 |
<style>
|
14 |
body {
|
15 |
background-color: #000000;
|
16 |
-
color: #ffffff;
|
17 |
}
|
18 |
.stApp {
|
19 |
background-color: #000000;
|
20 |
-
color: #ffffff;
|
21 |
}
|
22 |
</style>
|
23 |
""",
|
24 |
unsafe_allow_html=True
|
25 |
)
|
26 |
|
27 |
-
st.
|
28 |
-
# Add some text to the app
|
29 |
-
st.write("**This is my Streamlit app with HTML and CSS formatting.**")
|
30 |
|
31 |
-
text_input_value = st.text_input("Enter some text"
|
32 |
query = text_input_value
|
33 |
query = query.lower()
|
34 |
# query = input ("Enter your keyword(s):")
|
@@ -53,7 +51,7 @@ if query:
|
|
53 |
table.head(10).to_csv("clotting_sim1.csv", index=True)
|
54 |
# short_table = table.head(50)
|
55 |
# print(table)
|
56 |
-
st.
|
57 |
|
58 |
# calculate the sizes of the squares in the treemap
|
59 |
short_table = table.head(20)
|
@@ -88,7 +86,7 @@ if query:
|
|
88 |
print()
|
89 |
df1.head(50).to_csv("clotting_sim2.csv", index=True, header=False)
|
90 |
# time.sleep(2)
|
91 |
-
st.
|
92 |
|
93 |
df1 = df1.head(20)
|
94 |
df1.index = 1/df1.index
|
|
|
13 |
<style>
|
14 |
body {
|
15 |
background-color: #000000;
|
16 |
+
# color: #ffffff;
|
17 |
}
|
18 |
.stApp {
|
19 |
background-color: #000000;
|
20 |
+
# color: #ffffff;
|
21 |
}
|
22 |
</style>
|
23 |
""",
|
24 |
unsafe_allow_html=True
|
25 |
)
|
26 |
|
27 |
+
st.header(":white[Word2Vec App for Clotting Pubmed Database.]")
|
|
|
|
|
28 |
|
29 |
+
text_input_value = st.text_input(":white[Enter some text"])
|
30 |
query = text_input_value
|
31 |
query = query.lower()
|
32 |
# query = input ("Enter your keyword(s):")
|
|
|
51 |
table.head(10).to_csv("clotting_sim1.csv", index=True)
|
52 |
# short_table = table.head(50)
|
53 |
# print(table)
|
54 |
+
st.subheader(f":white[Similar Words to {query}]")
|
55 |
|
56 |
# calculate the sizes of the squares in the treemap
|
57 |
short_table = table.head(20)
|
|
|
86 |
print()
|
87 |
df1.head(50).to_csv("clotting_sim2.csv", index=True, header=False)
|
88 |
# time.sleep(2)
|
89 |
+
st.subheader(f":white[Similar Genes to {query}]")
|
90 |
|
91 |
df1 = df1.head(20)
|
92 |
df1.index = 1/df1.index
|