fffiloni commited on
Commit
d13ae8a
1 Parent(s): a7780ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -10
app.py CHANGED
@@ -39,7 +39,8 @@ a {text-decoration-line: underline; font-weight: 600;}
39
  justify-content: center;
40
  align-items: center;
41
  border-radius: 9999px !important;
42
- max-width: 13rem;
 
43
  }
44
 
45
  div#share-btn-container > div {
@@ -81,8 +82,8 @@ div#share-btn-container > div {
81
  display: none!important;
82
  }
83
  img[src*='#center'] {
84
- display: block;
85
- margin: auto;
86
  }
87
 
88
  .footer {
@@ -114,9 +115,7 @@ with gr.Blocks(css=css) as demo:
114
  <p style="text-align: center;">
115
  A watermark-free Modelscope-based video model optimized for producing high-quality 16:9 compositions and a smooth video output. <br />
116
  </p>
117
-
118
- [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-sm.svg#center)](https://huggingface.co/spaces/fffiloni/zeroscope?duplicate=true)
119
-
120
  """
121
  )
122
 
@@ -126,10 +125,15 @@ with gr.Blocks(css=css) as demo:
126
  submit_btn = gr.Button("Submit")
127
  video_result = gr.Video(label="Video Output", elem_id="video-output")
128
 
129
- with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
130
- community_icon = gr.HTML(community_icon_html)
131
- loading_icon = gr.HTML(loading_icon_html)
132
- share_button = gr.Button("Share to community", elem_id="share-btn")
 
 
 
 
 
133
 
134
  gr.HTML("""
135
  <div class="footer">
 
39
  justify-content: center;
40
  align-items: center;
41
  border-radius: 9999px !important;
42
+ max-width: 15rem;
43
+ height: 36px;
44
  }
45
 
46
  div#share-btn-container > div {
 
82
  display: none!important;
83
  }
84
  img[src*='#center'] {
85
+ display: inline-block;
86
+ margin: unset;
87
  }
88
 
89
  .footer {
 
115
  <p style="text-align: center;">
116
  A watermark-free Modelscope-based video model optimized for producing high-quality 16:9 compositions and a smooth video output. <br />
117
  </p>
118
+
 
 
119
  """
120
  )
121
 
 
125
  submit_btn = gr.Button("Submit")
126
  video_result = gr.Video(label="Video Output", elem_id="video-output")
127
 
128
+ with gr.Row():
129
+ with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
130
+ community_icon = gr.HTML(community_icon_html)
131
+ loading_icon = gr.HTML(loading_icon_html)
132
+ share_button = gr.Button("Share with Community", elem_id="share-btn")
133
+
134
+ gr.Markdown("""
135
+ [![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-lg.svg#center)](https://huggingface.co/spaces/fffiloni/zeroscope-cloning?duplicate=true)
136
+ """)
137
 
138
  gr.HTML("""
139
  <div class="footer">