Spaces:
Runtime error
Runtime error
theme and disk utils
Browse files- .streamlit/config.toml +2 -0
- 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 |
-
|
| 4 |
-
st.write(x, "squared is", x * x)
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
if b:
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)))
|