menorki commited on
Commit
f5d816c
1 Parent(s): 1eccb14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -121,7 +121,7 @@ with gr.Blocks(analytics_enabled=False , head=head , css=css, theme="bethecloud/
121
  gr.HTML(f'''<div style="width:100%; text-align:left"><img src="{BASE_URL}assets/images/banner-dugrainaupain.jpg" style="display: inline-block;"></div>''')
122
 
123
 
124
- with gr.Tab("LE PROJET....."):
125
 
126
  with gr.Row():
127
  with gr.Column(scale=1):
@@ -133,7 +133,7 @@ with gr.Blocks(analytics_enabled=False , head=head , css=css, theme="bethecloud/
133
  gr.HTML(read_text_file("assets/html/intro.txt"))
134
 
135
 
136
- with gr.Tab("Avant/Après"):
137
  with gr.Row():
138
  before = BASE_URL + 'assets/images/before-after/moulin-insitu-1-_1610534-schema-BEFORE.jpg'
139
  after = BASE_URL + 'assets/images/before-after/moulin-insitu-1-_1610534-AFTER.jpg'
@@ -148,7 +148,7 @@ with gr.Blocks(analytics_enabled=False , head=head , css=css, theme="bethecloud/
148
  print(f'{BASE_URL}assets/images/before-after/moulin-insitu-1-_1610534-AFTER.jpg')
149
 
150
  if images_names:
151
- with gr.Tab("Images"):
152
  image_viewer = gr.Gallery(label="Generated images",
153
  show_label=False,
154
  elem_id='gallery',
@@ -160,7 +160,7 @@ with gr.Blocks(analytics_enabled=False , head=head , css=css, theme="bethecloud/
160
 
161
 
162
  if model3D_names:
163
- with gr.Tab("Modèles 3D"):
164
 
165
  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;">
166
  <model-viewer id="google-3D-viewer" style="width: 100%; height: 100%;" src="DEFAULT_MODEL_URL" auto-rotate camera-controls></model-viewer>
@@ -202,7 +202,7 @@ with gr.Blocks(analytics_enabled=False , head=head , css=css, theme="bethecloud/
202
  interactive=True,
203
  choices=video_names,
204
  value=video_names[0],
205
- label="Selectionner une video:"
206
  )
207
 
208
  def load_video(video_name):
 
121
  gr.HTML(f'''<div style="width:100%; text-align:left"><img src="{BASE_URL}assets/images/banner-dugrainaupain.jpg" style="display: inline-block;"></div>''')
122
 
123
 
124
+ with gr.Tab("PROJECT....."):
125
 
126
  with gr.Row():
127
  with gr.Column(scale=1):
 
133
  gr.HTML(read_text_file("assets/html/intro.txt"))
134
 
135
 
136
+ with gr.Tab("Before/After"):
137
  with gr.Row():
138
  before = BASE_URL + 'assets/images/before-after/moulin-insitu-1-_1610534-schema-BEFORE.jpg'
139
  after = BASE_URL + 'assets/images/before-after/moulin-insitu-1-_1610534-AFTER.jpg'
 
148
  print(f'{BASE_URL}assets/images/before-after/moulin-insitu-1-_1610534-AFTER.jpg')
149
 
150
  if images_names:
151
+ with gr.Tab("Ref. Images"):
152
  image_viewer = gr.Gallery(label="Generated images",
153
  show_label=False,
154
  elem_id='gallery',
 
160
 
161
 
162
  if model3D_names:
163
+ with gr.Tab("3D Models"):
164
 
165
  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;">
166
  <model-viewer id="google-3D-viewer" style="width: 100%; height: 100%;" src="DEFAULT_MODEL_URL" auto-rotate camera-controls></model-viewer>
 
202
  interactive=True,
203
  choices=video_names,
204
  value=video_names[0],
205
+ label="Select a video:"
206
  )
207
 
208
  def load_video(video_name):