f64 commited on
Commit ·
78341be
1
Parent(s): 7d38799
CTAPT.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import os, re, sys, time, math, shutil, urllib, string, random, pickle, zipfile, datetime, platform
|
| 2 |
import streamlit as st, pandas as pd, numpy as np
|
| 3 |
|
| 4 |
st.set_page_config(page_title="Предсказание V", page_icon="🦋", layout="wide", initial_sidebar_state="expanded")
|
|
@@ -25,7 +25,7 @@ st.sidebar.markdown(f"Your favorite command is **{favorite_command}** 🎚️")
|
|
| 25 |
|
| 26 |
|
| 27 |
with st.container():
|
| 28 |
-
cols1 = st.columns([
|
| 29 |
dirParams = {
|
| 30 |
"os.getcwd": os.getcwd(),
|
| 31 |
"cpu_count": os.cpu_count(),
|
|
@@ -47,3 +47,4 @@ with st.container():
|
|
| 47 |
cols1[0].write(dirParams)
|
| 48 |
cols1[1].write(os.environ)
|
| 49 |
cols1[2].write(os.listdir())
|
|
|
|
|
|
| 1 |
+
import os, re, sys, time, math, shutil, urllib, string, random, pickle, zipfile, datetime, platform, psutil
|
| 2 |
import streamlit as st, pandas as pd, numpy as np
|
| 3 |
|
| 4 |
st.set_page_config(page_title="Предсказание V", page_icon="🦋", layout="wide", initial_sidebar_state="expanded")
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
with st.container():
|
| 28 |
+
cols1 = st.columns([4,4,4,4])
|
| 29 |
dirParams = {
|
| 30 |
"os.getcwd": os.getcwd(),
|
| 31 |
"cpu_count": os.cpu_count(),
|
|
|
|
| 47 |
cols1[0].write(dirParams)
|
| 48 |
cols1[1].write(os.environ)
|
| 49 |
cols1[2].write(os.listdir())
|
| 50 |
+
cols1[3].write(psutil.cpu_percent(percpu=True))
|