vodkaslime commited on
Commit
562ef99
·
unverified ·
1 Parent(s): 25d2916

theme and disk utils

Browse files
Files changed (2) hide show
  1. .streamlit/config.toml +2 -0
  2. app.py +10 -4
.streamlit/config.toml ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [theme]
2
+ primaryColor="#feab56"
app.py CHANGED
@@ -1,8 +1,14 @@
 
1
  import streamlit as st
2
 
3
- x = st.slider("Select a value")
4
- st.write(x, "squared is", x * x)
5
 
6
- b = st.button("Button")
 
 
7
  if b:
8
- st.write("button clicked")
 
 
 
 
 
1
+ import shutil
2
  import streamlit as st
3
 
4
+ model = st.text_input("Model name")
 
5
 
6
+ with st.container():
7
+ interence_mode = st.radio("Inference mode", ("causallm", "seq2seq"))
8
+ b = st.button("Convert model")
9
  if b:
10
+ total, used, free = shutil.disk_usage("/")
11
+ st.write("The model name is: ", model)
12
+ st.write("Total: %d GiB" % (total // (2**30)))
13
+ st.write("Used: %d GiB" % (used // (2**30)))
14
+ st.write("Free: %d GiB" % (free // (2**30)))