Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
-
from transformers import
|
3 |
|
4 |
-
extractor = AutoFeatureExtractor.from_pretrained("
|
5 |
|
6 |
-
model =
|
7 |
|
8 |
-
pipe = pipeline(task="image-
|
9 |
model=model,
|
10 |
feature_extractor=extractor)
|
11 |
|
12 |
gr.Interface.from_pipeline(pipe,
|
13 |
-
title="
|
14 |
description="Add description",
|
15 |
).launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import AutoFeatureExtractor, AutoModelForImageClassification, pipeline
|
3 |
|
4 |
+
extractor = AutoFeatureExtractor.from_pretrained("edixo/road_good_damaged_condition")
|
5 |
|
6 |
+
model = AutoModelForImageClassification.from_pretrained("edixo/road_good_damaged_condition")
|
7 |
|
8 |
+
pipe = pipeline(task="image-classification",
|
9 |
model=model,
|
10 |
feature_extractor=extractor)
|
11 |
|
12 |
gr.Interface.from_pipeline(pipe,
|
13 |
+
title="roads",
|
14 |
description="Add description",
|
15 |
).launch()
|