Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"- %",)
|