Tony Shepherd commited on
Commit
0817f3d
1 Parent(s): 8adacef

cast bool/int as string for concatenation

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ print(torch.__version__)
9
 
10
  st.write("torch version: " + torch.__version__)
11
  st.write(" ")
12
- st.write("cuda available: " + torch.cuda.is_available())
13
  st.write(" ")
14
- st.write("No of GPUs: " + torch.cuda.device_count())
15
  st.write(" ")
16
  st.write("device name: " + torch.cuda.get_device_name())
 
9
 
10
  st.write("torch version: " + torch.__version__)
11
  st.write(" ")
12
+ st.write("cuda available: " + str(torch.cuda.is_available()))
13
  st.write(" ")
14
+ st.write("No of GPUs: " + str(torch.cuda.device_count()))
15
  st.write(" ")
16
  st.write("device name: " + torch.cuda.get_device_name())