cagataydag commited on
Commit
c96f1d0
1 Parent(s): 2ba1374

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -408,7 +408,7 @@ with blocks:
408
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.00946' target='_blank'>StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators</a> | <a href='https://stylegan-nada.github.io/' target='_blank'>Project Page</a> | <a href='https://github.com/rinongal/StyleGAN-nada' target='_blank'>Code</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=rinong_sgnada' alt='visitor badge'></center>"
409
  gr.Markdown(article)
410
 
411
- #blocks.launch(enable_queue=True)
412
 
413
 
414
 
@@ -432,12 +432,12 @@ def my_inference_function(image,text):
432
 
433
  return editor.predict(img_path,[text])
434
 
435
- gradio_interface = gr.Interface(
436
- fn = my_inference_function,
437
- inputs = ["text","text"],
438
- outputs = "text"
439
- )
440
- gradio_interface.launch()
441
 
442
 
443
  #gradio_interface = gr.Interface(
 
408
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2108.00946' target='_blank'>StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators</a> | <a href='https://stylegan-nada.github.io/' target='_blank'>Project Page</a> | <a href='https://github.com/rinongal/StyleGAN-nada' target='_blank'>Code</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=rinong_sgnada' alt='visitor badge'></center>"
409
  gr.Markdown(article)
410
 
411
+ blocks.launch(enable_queue=True)
412
 
413
 
414
 
 
432
 
433
  return editor.predict(img_path,[text])
434
 
435
+ #gradio_interface = gr.Interface(
436
+ # fn = my_inference_function,
437
+ # inputs = ["text","text"],
438
+ # outputs = "text"
439
+ #)
440
+ #gradio_interface.launch(enable_queue=True)
441
 
442
 
443
  #gradio_interface = gr.Interface(