Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import numpy as np
|
|
11 |
import spaces
|
12 |
from PIL import Image
|
13 |
|
14 |
-
model_id = "mattraj/curacel-
|
15 |
COLORS = ['#4285f4', '#db4437', '#f4b400', '#0f9d58', '#e48ef1']
|
16 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
17 |
model = PaliGemmaForConditionalGeneration.from_pretrained(model_id, torch_dtype=torch.bfloat16).eval().to(device)
|
@@ -92,9 +92,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
92 |
outputs=chat_outputs,
|
93 |
)
|
94 |
|
95 |
-
examples = [["./
|
96 |
-
["./4800-13-diagnosis.png", "Transcribe the Arabic text."],
|
97 |
-
["./sign.png", "Transcribe the Arabic text."]]
|
98 |
gr.Markdown("")
|
99 |
|
100 |
gr.Examples(
|
|
|
11 |
import spaces
|
12 |
from PIL import Image
|
13 |
|
14 |
+
model_id = "mattraj/curacel-autodamage-1"
|
15 |
COLORS = ['#4285f4', '#db4437', '#f4b400', '#0f9d58', '#e48ef1']
|
16 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
17 |
model = PaliGemmaForConditionalGeneration.from_pretrained(model_id, torch_dtype=torch.bfloat16).eval().to(device)
|
|
|
92 |
outputs=chat_outputs,
|
93 |
)
|
94 |
|
95 |
+
examples = [["./car-1.png", "detect Front-Windscreen-Damage ; Headlight-Damage ; Major-Rear-Bumper-Dent ; Rear-windscreen-Damage ; RunningBoard-Dent ; Sidemirror-Damage ; Signlight-Damage ; Taillight-Damage ; bonnet-dent ; doorouter-dent ; doorouter-scratch ; fender-dent ; front-bumper-dent ; front-bumper-scratch ; medium-Bodypanel-Dent ; paint-chip ; paint-trace ; pillar-dent ; quaterpanel-dent ; rear-bumper-dent ; rear-bumper-scratch ; roof-dent"]]
|
|
|
|
|
96 |
gr.Markdown("")
|
97 |
|
98 |
gr.Examples(
|