Shubham170793 commited on
Commit
c5f8de4
·
verified ·
1 Parent(s): 78f9c7e

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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
  # ==========================================================