jbilcke-hf HF staff commited on
Commit
fd1df5e
1 Parent(s): 9c21091

small UI improvement

Browse files
src/components/toolbars/top-menu/file/index.tsx CHANGED
@@ -99,14 +99,14 @@ export function TopMenuFile() {
99
  openClapUrl('/samples/claps/wasteland.clap')
100
  }}
101
  >
102
- Wasteland.clap
103
  </MenubarItem>
104
  <MenubarItem
105
  onClick={() => {
106
  openScreenplayUrl('/samples/scripts/The Apery.txt')
107
  }}
108
  >
109
- The Apery.txt [by GPT-4]
110
  </MenubarItem>
111
  <MenubarItem
112
  onClick={() => {
@@ -120,11 +120,13 @@ export function TopMenuFile() {
120
  openScreenplayUrl('/samples/scripts/Rear Window.txt')
121
  }}
122
  >
123
- Rear Window
124
  </MenubarItem>
125
  <MenubarItem
126
  onClick={() => {
127
- openScreenplayUrl('/samples/scripts/Raiders of the Lost Ark.txt')
 
 
128
  }}
129
  >
130
  Raiders of the Lost Ark.txt
 
99
  openClapUrl('/samples/claps/wasteland.clap')
100
  }}
101
  >
102
+ [demo] Wasteland.clap
103
  </MenubarItem>
104
  <MenubarItem
105
  onClick={() => {
106
  openScreenplayUrl('/samples/scripts/The Apery.txt')
107
  }}
108
  >
109
+ [demo] The Apery.txt
110
  </MenubarItem>
111
  <MenubarItem
112
  onClick={() => {
 
120
  openScreenplayUrl('/samples/scripts/Rear Window.txt')
121
  }}
122
  >
123
+ Rear Window.txt
124
  </MenubarItem>
125
  <MenubarItem
126
  onClick={() => {
127
+ openScreenplayUrl(
128
+ '/samples/scripts/Raiders of the Lost Ark.txt'
129
+ )
130
  }}
131
  >
132
  Raiders of the Lost Ark.txt
src/services/io/useIO.ts CHANGED
@@ -441,7 +441,7 @@ export const useIO = create<IOStore>((set, get) => ({
441
  totalDurationInMs,
442
  (progress, message) => {
443
  task.setProgress({
444
- message,
445
  value: progress * 0.9,
446
  })
447
  }
@@ -482,6 +482,8 @@ export const useIO = create<IOStore>((set, get) => ({
482
  )
483
  }
484
 
 
 
485
  saveAnyFile(videoBlob, 'my_project.mp4')
486
  },
487
 
 
441
  totalDurationInMs,
442
  (progress, message) => {
443
  task.setProgress({
444
+ message: `Rendering video (${Math.round(progress)}%)`,
445
  value: progress * 0.9,
446
  })
447
  }
 
482
  )
483
  }
484
 
485
+ task.success()
486
+
487
  saveAnyFile(videoBlob, 'my_project.mp4')
488
  },
489