jonaschua commited on
Commit
d6ed3af
·
verified ·
1 Parent(s): 134501e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,6 +1,13 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
 
 
 
 
 
 
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
+
5
+ import torch
6
+ print(f"Is CUDA available: {torch.cuda.is_available()}")
7
+ # True
8
+ print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
9
+ # Tesla T4
10
+
11
  """
12
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
13
  """