multimodalart HF staff commited on
Commit
c6b69d9
1 Parent(s): 01006ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -165,10 +165,10 @@ css = '''.gradio-container{max-width: 700px !important}
165
  .fade-in-out {animation: fadeInOut 3s forwards}
166
  @keyframes fadeInOut {
167
  0% {
168
- background: var(--bg-color); /* Immediately set to the target color */
169
  }
170
  100% {
171
- background: var(--button-secondary-background-fill); /* Gradually fade back to the original */
172
  }
173
  }
174
  '''
@@ -209,7 +209,7 @@ document.body.addEventListener('click', function(event) {
209
  </script>
210
  '''
211
 
212
- with gr.Blocks(css=css, head=js) as demo:
213
  gr.Markdown('''# Generative Recommenders
214
  Explore the latent space without text prompts, based on your preferences. [Learn more on the blog](https://rynmurdock.github.io/posts/2024/3/generative_recomenders/)
215
  ''', elem_id="description")
 
165
  .fade-in-out {animation: fadeInOut 3s forwards}
166
  @keyframes fadeInOut {
167
  0% {
168
+ background: var(--bg-color);
169
  }
170
  100% {
171
+ background: var(--button-secondary-background-fill);
172
  }
173
  }
174
  '''
 
209
  </script>
210
  '''
211
 
212
+ with gr.Blocks(css=css, head=js_head) as demo:
213
  gr.Markdown('''# Generative Recommenders
214
  Explore the latent space without text prompts, based on your preferences. [Learn more on the blog](https://rynmurdock.github.io/posts/2024/3/generative_recomenders/)
215
  ''', elem_id="description")