Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files- app_image_to_3d.py +1 -2
- app_text_to_3d.py +1 -2
- settings.py +0 -4
app_image_to_3d.py
CHANGED
@@ -9,7 +9,7 @@ import PIL.Image
|
|
9 |
import spaces
|
10 |
|
11 |
from model import Model
|
12 |
-
from settings import
|
13 |
from utils import randomize_seed_fn
|
14 |
|
15 |
|
@@ -64,7 +64,6 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
64 |
inputs=image,
|
65 |
outputs=result,
|
66 |
fn=process_example_fn,
|
67 |
-
cache_examples=CACHE_EXAMPLES,
|
68 |
)
|
69 |
|
70 |
run_button.click(
|
|
|
9 |
import spaces
|
10 |
|
11 |
from model import Model
|
12 |
+
from settings import MAX_SEED
|
13 |
from utils import randomize_seed_fn
|
14 |
|
15 |
|
|
|
64 |
inputs=image,
|
65 |
outputs=result,
|
66 |
fn=process_example_fn,
|
|
|
67 |
)
|
68 |
|
69 |
run_button.click(
|
app_text_to_3d.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
import spaces
|
5 |
|
6 |
from model import Model
|
7 |
-
from settings import
|
8 |
from utils import randomize_seed_fn
|
9 |
|
10 |
|
@@ -70,7 +70,6 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
70 |
inputs=prompt,
|
71 |
outputs=result,
|
72 |
fn=process_example_fn,
|
73 |
-
cache_examples=CACHE_EXAMPLES,
|
74 |
)
|
75 |
|
76 |
gr.on(
|
|
|
4 |
import spaces
|
5 |
|
6 |
from model import Model
|
7 |
+
from settings import MAX_SEED
|
8 |
from utils import randomize_seed_fn
|
9 |
|
10 |
|
|
|
70 |
inputs=prompt,
|
71 |
outputs=result,
|
72 |
fn=process_example_fn,
|
|
|
73 |
)
|
74 |
|
75 |
gr.on(
|
settings.py
CHANGED
@@ -1,7 +1,3 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
import numpy as np
|
4 |
|
5 |
-
CACHE_EXAMPLES = os.getenv("CACHE_EXAMPLES") == "1"
|
6 |
-
|
7 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
|
|
|
|
|
3 |
MAX_SEED = np.iinfo(np.int32).max
|