Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from PIL import Image
|
|
5 |
import pandas as pd
|
6 |
import pytesseract
|
7 |
|
8 |
-
# Install missing dependencies, including PyTorch
|
9 |
-
os.system("pip install torch transformers pandas pillow pytesseract")
|
10 |
|
11 |
# Load models
|
12 |
text_model = AutoModelForCausalLM.from_pretrained("microsoft/Florence-2-large", trust_remote_code=True)
|
|
|
5 |
import pandas as pd
|
6 |
import pytesseract
|
7 |
|
8 |
+
# Install missing dependencies, including PyTorch and additional packages
|
9 |
+
os.system("pip install torch transformers pandas pillow pytesseract flash_attn einops timm")
|
10 |
|
11 |
# Load models
|
12 |
text_model = AutoModelForCausalLM.from_pretrained("microsoft/Florence-2-large", trust_remote_code=True)
|