jcsagar commited on
Commit
d8f3530
·
verified ·
1 Parent(s): fb5c2f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from huggingface_hub import login
7
 
8
  # Load the model
9
  model = AutoModel.from_pretrained("jcsagar/CXR-LLAVA-v2", trust_remote_code=True)
10
- model = model.to("cuda" if torch.cuda.is_available() else "cpu")
11
 
12
  # Define the function to generate the report
13
  def generate_report(image):
 
7
 
8
  # Load the model
9
  model = AutoModel.from_pretrained("jcsagar/CXR-LLAVA-v2", trust_remote_code=True)
10
+ model = model.to("cuda")
11
 
12
  # Define the function to generate the report
13
  def generate_report(image):