Spaces:
Running
on
L4
Running
on
L4
Xu Xuenan
commited on
Commit
·
4017e9d
1
Parent(s):
c5ffc8a
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
from pathlib import Path
|
2 |
import argparse
|
3 |
import shutil
|
@@ -83,6 +85,7 @@ def write_story_fn(story_topic, main_role, scene,
|
|
83 |
# story_data, story_accordion, story_content
|
84 |
return pages, gr.update(visible=True), pages[current_page], gr.update()
|
85 |
|
|
|
86 |
def modality_assets_generation_fn(
|
87 |
height, width, image_seed, sound_guidance_scale, sound_seed,
|
88 |
n_candidate_per_text, music_duration,
|
|
|
1 |
+
import spaces
|
2 |
+
|
3 |
from pathlib import Path
|
4 |
import argparse
|
5 |
import shutil
|
|
|
85 |
# story_data, story_accordion, story_content
|
86 |
return pages, gr.update(visible=True), pages[current_page], gr.update()
|
87 |
|
88 |
+
@spaces.GPU
|
89 |
def modality_assets_generation_fn(
|
90 |
height, width, image_seed, sound_guidance_scale, sound_seed,
|
91 |
n_candidate_per_text, music_duration,
|