Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,8 @@ subprocess.run(
|
|
11 |
check=True
|
12 |
)
|
13 |
|
|
|
|
|
14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
15 |
|
16 |
config = AutoConfig.from_pretrained(model_id, trust_remote_code=True)
|
|
|
11 |
check=True
|
12 |
)
|
13 |
|
14 |
+
model_id = "microsoft/Florence-2-base-ft"
|
15 |
+
|
16 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
17 |
|
18 |
config = AutoConfig.from_pretrained(model_id, trust_remote_code=True)
|