Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def main(prompt, iteration,CFG, seed):
|
|
| 47 |
subprocess.run([
|
| 48 |
f'python launch.py --config configs/gaussiandreamer-sd.yaml --train --gpu 0 system.prompt_processor.prompt="{prompt}" seed={seed} system.guidance.guidance_scale={CFG} trainer.max_steps={iteration} use_timestamp=False timestamp="{timestamp}" '],
|
| 49 |
shell=True)
|
| 50 |
-
path= os.path.join("./outputs/gaussiandreamer-sd",f'{prompt.replace(" ","_")}{timestamp}',"save/
|
| 51 |
print('==> Save path:', path)
|
| 52 |
return gr.Video(value=path, autoplay=True)
|
| 53 |
|
|
|
|
| 47 |
subprocess.run([
|
| 48 |
f'python launch.py --config configs/gaussiandreamer-sd.yaml --train --gpu 0 system.prompt_processor.prompt="{prompt}" seed={seed} system.guidance.guidance_scale={CFG} trainer.max_steps={iteration} use_timestamp=False timestamp="{timestamp}" '],
|
| 49 |
shell=True)
|
| 50 |
+
path= os.path.join("./outputs/gaussiandreamer-sd",f'{prompt.replace(" ","_")}{timestamp}',f"save/it{iteration}-test.mp4")
|
| 51 |
print('==> Save path:', path)
|
| 52 |
return gr.Video(value=path, autoplay=True)
|
| 53 |
|