Mathis Petrovich commited on
Commit
16fe302
1 Parent(s): 6415e78

special class for retrieved videos

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ EXAMPLES = [
65
  # css to make videos look nice
66
  # var(--block-border-color);
67
  CSS = """
68
- video {
69
  position: relative;
70
  margin: 0;
71
  box-shadow: var(--block-shadow);
@@ -183,7 +183,7 @@ AMASS path: {path}'''
183
  # <div class="contour_video" style="position: absolute; padding: 10px;">
184
  # width="{width}" height="{height}"
185
  video_html = f'''
186
- <video width="{width}" height="{height}" preload="auto" muted playsinline onpause="this.load()"
187
  autoplay loop disablepictureinpicture id="{video_id}" title="{title}">
188
  <source src="{url}{trim}" type="video/mp4">
189
  Your browser does not support the video tag.
 
65
  # css to make videos look nice
66
  # var(--block-border-color);
67
  CSS = """
68
+ .retrieved_video {
69
  position: relative;
70
  margin: 0;
71
  box-shadow: var(--block-shadow);
 
183
  # <div class="contour_video" style="position: absolute; padding: 10px;">
184
  # width="{width}" height="{height}"
185
  video_html = f'''
186
+ <video class="retrieved_video" width="{width}" height="{height}" preload="auto" muted playsinline onpause="this.load()"
187
  autoplay loop disablepictureinpicture id="{video_id}" title="{title}">
188
  <source src="{url}{trim}" type="video/mp4">
189
  Your browser does not support the video tag.