batoon commited on
Commit
9b8a3f6
·
1 Parent(s): 3d274b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -3,6 +3,11 @@ from typing import Iterator
3
  import gradio as gr
4
  import torch
5
 
 
 
 
 
 
6
  from model import get_input_token_length, run
7
 
8
  DEFAULT_SYSTEM_PROMPT = """\
 
3
  import gradio as gr
4
  import torch
5
 
6
+ print(f"Is CUDA available: {torch.cuda.is_available()}")
7
+ print(f"{torch.cuda.current_device()}")
8
+ print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
9
+ exit()
10
+
11
  from model import get_input_token_length, run
12
 
13
  DEFAULT_SYSTEM_PROMPT = """\