shitaot commited on
Commit
1f25660
Β·
1 Parent(s): ef8a6ac
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -163,6 +163,7 @@ if __name__=='__main__':
163
  inputs=[gr.Textbox(type="text", label='Text{}'.format(i)) for i in range(8)]
164
 
165
  with gr.Blocks(css=css) as demo:
 
166
  with gr.Row():
167
  gr.Markdown(
168
  """
@@ -173,6 +174,12 @@ if __name__=='__main__':
173
  """
174
  <center>Text2Pano demonstration: Write a scene you want in Text, then click "Generate panorama". Alternatively, you can load the example text prompts below to populate text-boxes. The advanced mode allows to specify text prompts for each perspective image. It takes 3 minitues to generate one panorama.</center>
175
  """)
 
 
 
 
 
 
176
  with gr.Tab("Basic"):
177
  with gr.Row():
178
  textbox1=gr.Textbox(type="text", label='Text', value=default_text, elem_id='warning', elem_classes="feedback")
@@ -185,7 +192,7 @@ if __name__=='__main__':
185
  outputs=inputs+[textbox1]
186
  )
187
 
188
- with gr.Accordion("Example expand/hide") as acc:
189
  for i in range(0, len(examples_basic)):
190
  with gr.Row():
191
  gr.Image(load_example_img('assets/basic/img{}.png'.format(i+1)), label='example {}'.format(i+1))
@@ -224,7 +231,7 @@ if __name__=='__main__':
224
  clear,
225
  outputs=inputs+[textbox1]
226
  )
227
- with gr.Accordion("Example expand/hide") as acc_advanced:
228
  for i, example in enumerate(examples_advanced):
229
  with gr.Row():
230
  gr.Image(load_example_img('assets/advanced/img{}.png'.format(i+1)), label='example {}'.format(i+1))
@@ -268,4 +275,4 @@ if __name__=='__main__':
268
  outputs[8].render()
269
 
270
  demo.queue()
271
- demo.launch()
 
163
  inputs=[gr.Textbox(type="text", label='Text{}'.format(i)) for i in range(8)]
164
 
165
  with gr.Blocks(css=css) as demo:
166
+
167
  with gr.Row():
168
  gr.Markdown(
169
  """
 
174
  """
175
  <center>Text2Pano demonstration: Write a scene you want in Text, then click "Generate panorama". Alternatively, you can load the example text prompts below to populate text-boxes. The advanced mode allows to specify text prompts for each perspective image. It takes 3 minitues to generate one panorama.</center>
176
  """)
177
+ with gr.Row():
178
+ gr.HTML("""
179
+ <div style='text-align: center; font-size: 30px;'>
180
+ <a href='https://mvdiffusion.github.io/'>Project Page</a>
181
+ </div>
182
+ """)
183
  with gr.Tab("Basic"):
184
  with gr.Row():
185
  textbox1=gr.Textbox(type="text", label='Text', value=default_text, elem_id='warning', elem_classes="feedback")
 
192
  outputs=inputs+[textbox1]
193
  )
194
 
195
+ with gr.Accordion("Expand/hide examples") as acc:
196
  for i in range(0, len(examples_basic)):
197
  with gr.Row():
198
  gr.Image(load_example_img('assets/basic/img{}.png'.format(i+1)), label='example {}'.format(i+1))
 
231
  clear,
232
  outputs=inputs+[textbox1]
233
  )
234
+ with gr.Accordion("Expand/hide examples") as acc_advanced:
235
  for i, example in enumerate(examples_advanced):
236
  with gr.Row():
237
  gr.Image(load_example_img('assets/advanced/img{}.png'.format(i+1)), label='example {}'.format(i+1))
 
275
  outputs[8].render()
276
 
277
  demo.queue()
278
+ demo.launch(share=True)