Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -4,40 +4,40 @@ import gradio as gr
|
|
4 |
from PIL import Image
|
5 |
|
6 |
elements = {
|
7 |
-
"Becane": ("data/data_becane_1_0_2_014_before_img6", "data/data_becane_1_0_2_014_after_img7", "
|
8 |
-
"BTWIN": ("data/data_btwin_1_26_3_114_before_img0", "data/data_btwin_1_26_3_114_after_img13", "
|
9 |
-
"Classic Road": ("data/data_croad_4_26_4_112_before_img3", "data/data_croad_4_26_4_112_after_img7", "
|
10 |
-
"Domane": ("data/data_domane_2_0_39_012_before_img6", "data/data_domane_2_0_39_012_after_img13", "
|
11 |
-
"Enduro": ("data/data_enduro_2_18_18_105_before_img6", "data/data_enduro_2_18_18_105_after_img10", "
|
12 |
-
"G1": ("data/data_g1_2_36_14_010_before_img6", "data/data_g1_2_36_14_010_after_img8", "
|
13 |
-
"GBike": ("data/data_gbike_3_31_8_018_before_img2", "data/data_gbike_3_31_8_018_after_img8", "
|
14 |
"Holland": (
|
15 |
-
"data/data_holland_4_24_18_00_before_img4", "data/data_holland_4_24_18_00_after_img7", "
|
16 |
"Huffy": (
|
17 |
-
"data/data_huffy_6_4_35_012_before_img4", "data/data_huffy_6_4_35_012_after_img12", "
|
18 |
"Kuota": (
|
19 |
-
"data/data_kuota_6_5_30_112_before_img4", "data/data_kuota_6_5_30_112_after_img12", "
|
20 |
"MFactory": (
|
21 |
-
"data/data_mfactory_1_17_8_00_before_img4", "data/data_mfactory_1_17_8_00_after_img12", "
|
22 |
"Mirage": (
|
23 |
-
"data/data_mirage_6_11_36_117_before_img4", "data/data_mirage_6_11_36_117_after_img12", "
|
24 |
"Old Bike": (
|
25 |
-
"data/data_oldbike_3_30_15_100_before_img4", "data/data_oldbike_3_30_15_100_after_img12", "
|
26 |
"Freeride": (
|
27 |
-
"data/data_freeride_6_24_0_00_before_img4", "data/data_freeride_6_24_0_00_after_img12", "
|
28 |
"RondoRuut": (
|
29 |
"data/data_rondo_2_11_39_106_before_img4", "data/data_rondo_2_11_39_106_after_img12",
|
30 |
-
"
|
31 |
"MTB Ghost": (
|
32 |
-
"data/data_ghost_1_0_4_116_before_img4", "data/data_ghost_1_0_4_116_after_img12", "
|
33 |
"Scalpel": (
|
34 |
-
"data/data_scalpel_6_2_12_101_before_img4", "data/data_scalpel_6_2_12_101_after_img12", "
|
35 |
"Verdona": (
|
36 |
-
"data/data_verdona_1_14_10_118_before_img4", "data/data_verdona_1_14_10_118_after_img12", "
|
37 |
"Vintage": (
|
38 |
-
"data/data_vintage_6_6_33_011_before_img4", "data/data_vintage_6_6_33_011_after_img12", "
|
39 |
"WBike": (
|
40 |
-
"data/data_wbike_3_19_23_00_before_img4", "data/data_wbike_3_19_23_00_after_img12", "
|
41 |
}
|
42 |
|
43 |
|
|
|
4 |
from PIL import Image
|
5 |
|
6 |
elements = {
|
7 |
+
"Becane": ("data/data_becane_1_0_2_014_before_img6", "data/data_becane_1_0_2_014_after_img7", "models/RoadBecane_f.stl"),
|
8 |
+
"BTWIN": ("data/data_btwin_1_26_3_114_before_img0", "data/data_btwin_1_26_3_114_after_img13", "models/BTWIN.stl"),
|
9 |
+
"Classic Road": ("data/data_croad_4_26_4_112_before_img3", "data/data_croad_4_26_4_112_after_img7", "models/ClassicRoad.stl"),
|
10 |
+
"Domane": ("data/data_domane_2_0_39_012_before_img6", "data/data_domane_2_0_39_012_after_img13", "models/domane.stl"),
|
11 |
+
"Enduro": ("data/data_enduro_2_18_18_105_before_img6", "data/data_enduro_2_18_18_105_after_img10", "models/enduro.stl"),
|
12 |
+
"G1": ("data/data_g1_2_36_14_010_before_img6", "data/data_g1_2_36_14_010_after_img8", "models/g1.stl"),
|
13 |
+
"GBike": ("data/data_gbike_3_31_8_018_before_img2", "data/data_gbike_3_31_8_018_after_img8", "models/gbike.stl"),
|
14 |
"Holland": (
|
15 |
+
"data/data_holland_4_24_18_00_before_img4", "data/data_holland_4_24_18_00_after_img7", "models/holland.stl"),
|
16 |
"Huffy": (
|
17 |
+
"data/data_huffy_6_4_35_012_before_img4", "data/data_huffy_6_4_35_012_after_img12", "models/huffy.stl"),
|
18 |
"Kuota": (
|
19 |
+
"data/data_kuota_6_5_30_112_before_img4", "data/data_kuota_6_5_30_112_after_img12", "models/kuota.stl"),
|
20 |
"MFactory": (
|
21 |
+
"data/data_mfactory_1_17_8_00_before_img4", "data/data_mfactory_1_17_8_00_after_img12", "models/mfactory.stl"),
|
22 |
"Mirage": (
|
23 |
+
"data/data_mirage_6_11_36_117_before_img4", "data/data_mirage_6_11_36_117_after_img12", "models/mirage.stl"),
|
24 |
"Old Bike": (
|
25 |
+
"data/data_oldbike_3_30_15_100_before_img4", "data/data_oldbike_3_30_15_100_after_img12", "models/oldbike.stl"),
|
26 |
"Freeride": (
|
27 |
+
"data/data_freeride_6_24_0_00_before_img4", "data/data_freeride_6_24_0_00_after_img12", "models/freeride_1Step_f.stl"),
|
28 |
"RondoRuut": (
|
29 |
"data/data_rondo_2_11_39_106_before_img4", "data/data_rondo_2_11_39_106_after_img12",
|
30 |
+
"models/RondoRuutClean_1Step_f.stl"),
|
31 |
"MTB Ghost": (
|
32 |
+
"data/data_ghost_1_0_4_116_before_img4", "data/data_ghost_1_0_4_116_after_img12", "models/MTB_Ghost.stl"),
|
33 |
"Scalpel": (
|
34 |
+
"data/data_scalpel_6_2_12_101_before_img4", "data/data_scalpel_6_2_12_101_after_img12", "models/scalpel.stl"),
|
35 |
"Verdona": (
|
36 |
+
"data/data_verdona_1_14_10_118_before_img4", "data/data_verdona_1_14_10_118_after_img12", "models/verdona.stl"),
|
37 |
"Vintage": (
|
38 |
+
"data/data_vintage_6_6_33_011_before_img4", "data/data_vintage_6_6_33_011_after_img12", "models/Vintage.stl"),
|
39 |
"WBike": (
|
40 |
+
"data/data_wbike_3_19_23_00_before_img4", "data/data_wbike_3_19_23_00_after_img12", "models/wbike.stl"),
|
41 |
}
|
42 |
|
43 |
|