ldhldh commited on
Commit
d1d8ae0
·
1 Parent(s): 516f72b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -127,7 +127,7 @@ col1, col2, col3 = st.columns(3)
127
  col1.metric("Total GPU", f"{total_gpu} GB", f"{user_num} users are sharing now")
128
  if total_gpu != 0:
129
  col2.metric("Used", f"{used_gpu} GB")
130
- col3.metric("Percent", f"{round(100 * used_gpu/total_gpu, 2)} %",)
131
  else:
132
  col2.metric("Used", f"0 GB")
133
  col3.metric("Percent", f"- %",)
 
127
  col1.metric("Total GPU", f"{total_gpu} GB", f"{user_num} users are sharing now")
128
  if total_gpu != 0:
129
  col2.metric("Used", f"{used_gpu} GB")
130
+ col3.metric("Percent", f"{min(round(100 * used_gpu/total_gpu, 2),total_gpu*0.87)} %",)
131
  else:
132
  col2.metric("Used", f"0 GB")
133
  col3.metric("Percent", f"- %",)