Spaces:
Running
Running
update florence
Browse files
app.py
CHANGED
|
@@ -43,11 +43,11 @@ def load_local_models():
|
|
| 43 |
gc.collect()
|
| 44 |
|
| 45 |
florence_processor = AutoProcessor.from_pretrained(
|
| 46 |
-
"microsoft/Florence-2-
|
| 47 |
trust_remote_code=True
|
| 48 |
)
|
| 49 |
florence_model = AutoModelForCausalLM.from_pretrained(
|
| 50 |
-
"microsoft/Florence-2-
|
| 51 |
trust_remote_code=True,
|
| 52 |
torch_dtype=torch.float32
|
| 53 |
)
|
|
|
|
| 43 |
gc.collect()
|
| 44 |
|
| 45 |
florence_processor = AutoProcessor.from_pretrained(
|
| 46 |
+
"microsoft/Florence-2-large",
|
| 47 |
trust_remote_code=True
|
| 48 |
)
|
| 49 |
florence_model = AutoModelForCausalLM.from_pretrained(
|
| 50 |
+
"microsoft/Florence-2-large",
|
| 51 |
trust_remote_code=True,
|
| 52 |
torch_dtype=torch.float32
|
| 53 |
)
|