Spaces:
Sleeping
Sleeping
Du Mingzhe
commited on
Commit
•
c0f4173
1
Parent(s):
db8c1ee
update
Browse files
app.py
CHANGED
@@ -1,4 +1,32 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
st.title("GCP Resource Alloctor")
|
4 |
+
|
5 |
+
# GPU Type
|
6 |
+
gpu_type = st.selectbox(
|
7 |
+
'Which type of GPU you would like to use?',
|
8 |
+
(
|
9 |
+
'NVIDIA H100 80GB',
|
10 |
+
'NVIDIA A100 80GB',
|
11 |
+
'NVIDIA A100 40GB',
|
12 |
+
'NVIDIA V100 16GB',
|
13 |
+
'NVIDIA P100 16GB',
|
14 |
+
'NVIDIA L4 24GB',
|
15 |
+
'NVIDIA T4 16GB',
|
16 |
+
'NVIDIA P4 8GB',
|
17 |
+
)
|
18 |
+
)
|
19 |
+
|
20 |
+
# GPU Numbers
|
21 |
+
gpu_numbers = st.slider('How many GPUs you would like to use?', 0, 8, 1)
|
22 |
+
|
23 |
+
# CPU Cores
|
24 |
+
cpu_numbers = st.slider('How many CPU Cores you would like to use?', 0, 208, 8)
|
25 |
+
|
26 |
+
# Memory
|
27 |
+
memory_size = st.slider('How many Memory you would like to use?', 0, 208, 8)
|
28 |
+
|
29 |
+
|
30 |
+
{
|
31 |
+
""
|
32 |
+
}
|