jfataphd commited on
Commit
8b5ed16
·
1 Parent(s): f192d73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -16,17 +16,13 @@ html_temp = """
16
  color: #ffffff;
17
  }
18
  </style>
19
-
20
- <div style="background-color:black;padding:10px">
21
- <h1 style="color:white;text-align:center;">My Streamlit App with HTML and CSS</h1>
22
- </div>
23
  """
24
 
25
  # Display the HTML and CSS styles
26
  st.markdown(html_temp, unsafe_allow_html=True)
27
-
28
  # Add some text to the app
29
- st.write("This is my Streamlit app with HTML and CSS formatting.")
30
 
31
  query = st.text_input("Enter a word")
32
  query = query.lower()
@@ -52,7 +48,7 @@ if query:
52
  table.head(10).to_csv("clotting_sim1.csv", index=True)
53
  # short_table = table.head(50)
54
  # print(table)
55
- st.header(f"Similar Words to {query}")
56
 
57
  # calculate the sizes of the squares in the treemap
58
  short_table = table.head(20)
@@ -87,7 +83,7 @@ if query:
87
  print()
88
  df1.head(50).to_csv("clotting_sim2.csv", index=True, header=False)
89
  # time.sleep(2)
90
- st.header(f"Similar Genes to {query}")
91
 
92
  df1 = df1.head(20)
93
  df1.index = 1/df1.index
 
16
  color: #ffffff;
17
  }
18
  </style>
 
 
 
 
19
  """
20
 
21
  # Display the HTML and CSS styles
22
  st.markdown(html_temp, unsafe_allow_html=True)
23
+ st.header(":white[My Streamlit App with HTML and CSS]")
24
  # Add some text to the app
25
+ st.write(":white[This is my Streamlit app with HTML and CSS formatting.]")
26
 
27
  query = st.text_input("Enter a word")
28
  query = query.lower()
 
48
  table.head(10).to_csv("clotting_sim1.csv", index=True)
49
  # short_table = table.head(50)
50
  # print(table)
51
+ st.header(f":white[Similar Words to {query}]")
52
 
53
  # calculate the sizes of the squares in the treemap
54
  short_table = table.head(20)
 
83
  print()
84
  df1.head(50).to_csv("clotting_sim2.csv", index=True, header=False)
85
  # time.sleep(2)
86
+ st.header(f":white[Similar Genes to {query}]")
87
 
88
  df1 = df1.head(20)
89
  df1.index = 1/df1.index