Spaces:
Runtime error
Runtime error
Cache included
Browse files- app_pix2pix_video.py +2 -1
- app_pose.py +1 -1
- app_text_to_video.py +1 -0
app_pix2pix_video.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from model import Model
|
|
|
3 |
|
4 |
|
5 |
def create_demo(model: Model):
|
@@ -60,7 +61,7 @@ def create_demo(model: Model):
|
|
60 |
gr.Examples(examples=examples,
|
61 |
inputs=inputs,
|
62 |
outputs=result,
|
63 |
-
|
64 |
run_on_click=False,
|
65 |
)
|
66 |
|
|
|
1 |
import gradio as gr
|
2 |
from model import Model
|
3 |
+
import os
|
4 |
|
5 |
|
6 |
def create_demo(model: Model):
|
|
|
61 |
gr.Examples(examples=examples,
|
62 |
inputs=inputs,
|
63 |
outputs=result,
|
64 |
+
cache_examples=os.getenv('SYSTEM') == 'spaces',
|
65 |
run_on_click=False,
|
66 |
)
|
67 |
|
app_pose.py
CHANGED
@@ -40,7 +40,7 @@ def create_demo(model: Model):
|
|
40 |
gr.Examples(examples=examples,
|
41 |
inputs=inputs,
|
42 |
outputs=result,
|
43 |
-
|
44 |
fn=model.process_controlnet_pose,
|
45 |
run_on_click=False,
|
46 |
)
|
|
|
40 |
gr.Examples(examples=examples,
|
41 |
inputs=inputs,
|
42 |
outputs=result,
|
43 |
+
cache_examples=os.getenv('SYSTEM') == 'spaces',
|
44 |
fn=model.process_controlnet_pose,
|
45 |
run_on_click=False,
|
46 |
)
|
app_text_to_video.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from model import Model
|
3 |
from functools import partial
|
|
|
4 |
|
5 |
examples = [
|
6 |
["an astronaut waving the arm on the moon"],
|
|
|
1 |
import gradio as gr
|
2 |
from model import Model
|
3 |
from functools import partial
|
4 |
+
import os
|
5 |
|
6 |
examples = [
|
7 |
["an astronaut waving the arm on the moon"],
|