Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import torch
|
|
5 |
import os
|
6 |
|
7 |
# Load the model
|
8 |
-
model = AutoModel.from_pretrained("
|
9 |
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
|
10 |
|
11 |
# Define the function to generate the report
|
|
|
5 |
import os
|
6 |
|
7 |
# Load the model
|
8 |
+
model = AutoModel.from_pretrained("jcsagar/CXR-LLAVA-v2", trust_remote_code=True)
|
9 |
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
|
10 |
|
11 |
# Define the function to generate the report
|