anzorq commited on
Commit
c38f815
1 Parent(s): ae60913

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -17
app.py CHANGED
@@ -203,7 +203,7 @@ with gr.Blocks() as app:
203
  with gr.Tab("Text to Image to 3D"):
204
  gr.Markdown("Generate an image with Stable Diffusion, then convert it to 3D. Just enter the object you want to generate.")
205
  prompt_sd = gr.Textbox(label="Prompt", placeholder="a 3d rendering of [your prompt], full view, white background")
206
- btn_generate_txt2sd = gr.Button(value="Generate")
207
  img_sd = gr.Image(label="Image")
208
  btn_generate_sd2obj = gr.Button(value="Convert to 3D", visible=False)
209
 
@@ -216,7 +216,7 @@ with gr.Blocks() as app:
216
  plot = gr.Plot(label="Point cloud")
217
  # btn_pc_to_obj = gr.Button(value="Convert to OBJ", visible=False)
218
  model_3d = gr.Model3D(value=None)
219
- file_out = gr.File(label="Obj file", visible=False)
220
 
221
  # state_info = state_info = gr.Textbox(label="State", show_label=False).style(container=False)
222
 
@@ -235,18 +235,6 @@ with gr.Blocks() as app:
235
 
236
  # btn_pc_to_obj.click(ply_to_obj, inputs=plot, outputs=[model_3d, file_out])
237
 
238
- gr.HTML("""
239
- <br><br>
240
- <div style="border-top: 1px solid #303030;">
241
- <br>
242
- <p>Space by:<br>
243
- <a href="https://twitter.com/hahahahohohe"><img src="https://img.shields.io/twitter/follow/hahahahohohe?label=%40anzorq&style=social" alt="Twitter Follow"></a><br>
244
- <a href="https://github.com/qunash"><img alt="GitHub followers" src="https://img.shields.io/github/followers/qunash?style=social" alt="Github Follow"></a></p><br>
245
- <a href="https://www.buymeacoffee.com/anzorq" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 30px !important;width: 102px !important;" ></a><br><br>
246
- <p><img src="https://visitor-badge.glitch.me/badge?page_id=anzorq.point-e_demo" alt="visitors"></p>
247
- </div>
248
- """)
249
-
250
  gr.Examples(
251
  examples=[
252
  ["a cactus in a pot"],
@@ -276,7 +264,16 @@ with gr.Blocks() as app:
276
 
277
  # app.load(get_state, inputs=[], outputs=state_info, every=0.5, show_progress=False)
278
 
 
 
 
 
 
 
 
 
 
 
 
279
 
280
- app.queue()
281
- # app.launch(debug=True, share=True, height=768)
282
- app.launch(debug=True)
 
203
  with gr.Tab("Text to Image to 3D"):
204
  gr.Markdown("Generate an image with Stable Diffusion, then convert it to 3D. Just enter the object you want to generate.")
205
  prompt_sd = gr.Textbox(label="Prompt", placeholder="a 3d rendering of [your prompt], full view, white background")
206
+ btn_generate_txt2sd = gr.Button(value="Generate image")
207
  img_sd = gr.Image(label="Image")
208
  btn_generate_sd2obj = gr.Button(value="Convert to 3D", visible=False)
209
 
 
216
  plot = gr.Plot(label="Point cloud")
217
  # btn_pc_to_obj = gr.Button(value="Convert to OBJ", visible=False)
218
  model_3d = gr.Model3D(value=None)
219
+ file_out = gr.File(label="Files", visible=False)
220
 
221
  # state_info = state_info = gr.Textbox(label="State", show_label=False).style(container=False)
222
 
 
235
 
236
  # btn_pc_to_obj.click(ply_to_obj, inputs=plot, outputs=[model_3d, file_out])
237
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  gr.Examples(
239
  examples=[
240
  ["a cactus in a pot"],
 
264
 
265
  # app.load(get_state, inputs=[], outputs=state_info, every=0.5, show_progress=False)
266
 
267
+ gr.HTML("""
268
+ <br><br>
269
+ <div style="border-top: 1px solid #303030;">
270
+ <br>
271
+ <p>Space by:<br>
272
+ <a href="https://twitter.com/hahahahohohe"><img src="https://img.shields.io/twitter/follow/hahahahohohe?label=%40anzorq&style=social" alt="Twitter Follow"></a><br>
273
+ <a href="https://github.com/qunash"><img alt="GitHub followers" src="https://img.shields.io/github/followers/qunash?style=social" alt="Github Follow"></a></p><br>
274
+ <a href="https://www.buymeacoffee.com/anzorq" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 30px !important;width: 102px !important;" ></a><br><br>
275
+ <p><img src="https://visitor-badge.glitch.me/badge?page_id=anzorq.point-e_demo" alt="visitors"></p>
276
+ </div>
277
+ """)
278
 
279
+ app.queue(max_size=250, concurrency_count=6).launch()