Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,12 @@ import streamlit as st
|
|
2 |
import shutil
|
3 |
import os
|
4 |
|
5 |
-
total, used, free = shutil.disk_usage("/home/user/app")
|
6 |
|
7 |
-
st.write(f"Total: {total*0.000000001:.2f} GB")
|
8 |
-
st.write(f"Used: {used*0.000000001:.2f} GB")
|
9 |
-
st.write(f"Free:{free*0.000000001:.2f} GB")
|
10 |
# st.write(os.listdir("/home/user/app"))
|
11 |
|
12 |
with open("/home/user/app/Dockerfile", "rt") as f:
|
13 |
-
st.write(f.
|
|
|
2 |
import shutil
|
3 |
import os
|
4 |
|
5 |
+
# total, used, free = shutil.disk_usage("/home/user/app")
|
6 |
|
7 |
+
# st.write(f"Total: {total*0.000000001:.2f} GB")
|
8 |
+
# st.write(f"Used: {used*0.000000001:.2f} GB")
|
9 |
+
# st.write(f"Free:{free*0.000000001:.2f} GB")
|
10 |
# st.write(os.listdir("/home/user/app"))
|
11 |
|
12 |
with open("/home/user/app/Dockerfile", "rt") as f:
|
13 |
+
st.write(f.read())
|