MalumaDev commited on
Commit
e947d7e
·
1 Parent(s): 165fc74

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
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", "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
 
 
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