Update src/streamlit_app.py
Browse files- src/streamlit_app.py +9 -0
src/streamlit_app.py
CHANGED
|
@@ -2,6 +2,15 @@ import os
|
|
| 2 |
import shutil
|
| 3 |
import streamlit as st
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# ==========================================================
|
| 6 |
# ✅ Page Configuration (must be first Streamlit command)
|
| 7 |
# ==========================================================
|
|
|
|
| 2 |
import shutil
|
| 3 |
import streamlit as st
|
| 4 |
|
| 5 |
+
import torch
|
| 6 |
+
print("CUDA available:", torch.cuda.is_available())
|
| 7 |
+
print("Device count:", torch.cuda.device_count())
|
| 8 |
+
if torch.cuda.is_available():
|
| 9 |
+
print("GPU name:", torch.cuda.get_device_name(0))
|
| 10 |
+
else:
|
| 11 |
+
print("Running on CPU")
|
| 12 |
+
|
| 13 |
+
|
| 14 |
# ==========================================================
|
| 15 |
# ✅ Page Configuration (must be first Streamlit command)
|
| 16 |
# ==========================================================
|