Spaces:
Runtime error
Runtime error
File size: 378 Bytes
3712481 190d9e9 76b63bf a543549 190d9e9 4430ce1 190d9e9 7671d2b 190d9e9 76b63bf 7cea500 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import streamlit as st
import torch
import requests
st.title("Hugging Face Space GPU Info")
# Check if GPU is available
gpu_available = torch.cuda.is_available()
if gpu_available:
gpu_name = torch.cuda.get_device_name(0)
st.write(f"GPU available: {gpu_name}")
else:
st.write("No GPU available")
r = requests.get("https://www.google.com")
st.write(r.status_code) |