Severian commited on
Commit
a8aeacd
1 Parent(s): 634b048

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -441,7 +441,7 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
441
  with gr.Column(scale=2, elem_classes="welcome-content"):
442
  gr.Markdown(
443
  """
444
- <img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/LVZnwLV43UUvKu3HORqSs.webp" alt="UDG" width="250" style="max-width: 100%; height: auto; class="centered-image">
445
 
446
  # 🎨 Underground Digital's Caption Captain: AI-Powered Art Inspiration
447
 
@@ -484,7 +484,7 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
484
  gr.Markdown("""
485
  # How to Use Caption Captain
486
 
487
- <img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/Ce_Z478iOXljvpZ_Fr_Y7.png" alt="Captain" width="100" style="max-width: 100%; height: auto;">
488
 
489
  Hello, artist! Let's make some fun captions for your pictures. Here's how:
490
 
@@ -634,5 +634,11 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
634
  outputs=[caption_captain_tab, username, password, login_message]
635
  )
636
 
 
 
 
 
 
 
637
  if __name__ == "__main__":
638
  demo.launch()
 
441
  with gr.Column(scale=2, elem_classes="welcome-content"):
442
  gr.Markdown(
443
  """
444
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/XlmEJnl2OS5A33EbhnK9L.png" alt="UDG" width="250" style="max-width: 100%; height: auto; class="centered-image">
445
 
446
  # 🎨 Underground Digital's Caption Captain: AI-Powered Art Inspiration
447
 
 
484
  gr.Markdown("""
485
  # How to Use Caption Captain
486
 
487
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/64740cf7485a7c8e1bd51ac9/rLZkmUHaoRGHPqnCqKKou.png" alt="Captain" width="100" style="max-width: 100%; height: auto;">
488
 
489
  Hello, artist! Let's make some fun captions for your pictures. Here's how:
490
 
 
634
  outputs=[caption_captain_tab, username, password, login_message]
635
  )
636
 
637
+ password.submit(
638
+ login,
639
+ inputs=[username, password],
640
+ outputs=[caption_captain_tab, username, password, login_message]
641
+ )
642
+
643
  if __name__ == "__main__":
644
  demo.launch()