Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -81,11 +81,24 @@ with gr.Blocks(analytics_enabled=False , head=head , css=css, theme="bethecloud/
|
|
81 |
|
82 |
# gr.Markdown(DESCRIPTION)
|
83 |
# gr.Image(BASE_DIR + 'assets/images/banner-dugrainaupain.jpg', type='filepath')
|
84 |
-
gr.HTML(f'''<div style="width:100%; text-align:
|
85 |
|
86 |
with gr.Tab("LE PROJET....."):
|
87 |
gr.HTML(read_text_file("assets/html/intro.txt"))
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
with gr.Tab("Images"):
|
90 |
image_viewer = gr.Gallery(label="Generated images",
|
91 |
show_label=False,
|
@@ -94,12 +107,11 @@ with gr.Blocks(analytics_enabled=False , head=head , css=css, theme="bethecloud/
|
|
94 |
rows=[1],
|
95 |
object_fit="cover",
|
96 |
interactive=False,
|
97 |
-
value=images_files
|
98 |
-
)
|
99 |
|
100 |
with gr.Tab("Modèles 3D"):
|
101 |
|
102 |
-
viewer_html = '''<div id="google-3D-viewer-container" style="width:
|
103 |
<model-viewer id="google-3D-viewer" style="width: 100%; height: 100%;" src="DEFAULT_MODEL_URL" auto-rotate camera-controls></model-viewer>
|
104 |
</div>
|
105 |
'''
|
|
|
81 |
|
82 |
# gr.Markdown(DESCRIPTION)
|
83 |
# gr.Image(BASE_DIR + 'assets/images/banner-dugrainaupain.jpg', type='filepath')
|
84 |
+
gr.HTML(f'''<div style="width:100%; text-align:left"><img src="{BASE_URL}assets/images/banner-dugrainaupain.jpg" style="display: inline-block;"></div>''')
|
85 |
|
86 |
with gr.Tab("LE PROJET....."):
|
87 |
gr.HTML(read_text_file("assets/html/intro.txt"))
|
88 |
|
89 |
+
with gr.Tab("Avant/Après"):
|
90 |
+
|
91 |
+
aa_1 = ImageSlider(value=(f'{BASE_URL}assets/images/before-after/moulin-insitu-1-_1610534-BEFORE.jpg',
|
92 |
+
f'{BASE_URL}assets/images/before-after/moulin-insitu-1-_1610534-AFTER.jpg') ,
|
93 |
+
label="Vue de la route",
|
94 |
+
type="filepath",
|
95 |
+
slider_color="red",
|
96 |
+
interactive=False,
|
97 |
+
width=800,
|
98 |
+
height=600)
|
99 |
+
|
100 |
+
# print(BASE_DIR+'assets/images/before-after/moulin-insitu-1-_1610534-BEFORE.jpg')
|
101 |
+
|
102 |
with gr.Tab("Images"):
|
103 |
image_viewer = gr.Gallery(label="Generated images",
|
104 |
show_label=False,
|
|
|
107 |
rows=[1],
|
108 |
object_fit="cover",
|
109 |
interactive=False,
|
110 |
+
value=images_files)
|
|
|
111 |
|
112 |
with gr.Tab("Modèles 3D"):
|
113 |
|
114 |
+
viewer_html = '''<div id="google-3D-viewer-container" style="min-width:800px; width:100%; height:600px;" style="flex: 1; display: flex; justify-content: center; align-items: center;">
|
115 |
<model-viewer id="google-3D-viewer" style="width: 100%; height: 100%;" src="DEFAULT_MODEL_URL" auto-rotate camera-controls></model-viewer>
|
116 |
</div>
|
117 |
'''
|
assets/images/before-after/moulin-insitu-1-_1610534-AFTER.jpg
ADDED
assets/images/before-after/moulin-insitu-1-_1610534-BEFORE.jpg
ADDED