Spaces:
Build error
Build error
Upload gradio_app.py with huggingface_hub
Browse files- gradio_app.py +2 -2
gradio_app.py
CHANGED
@@ -9,7 +9,7 @@ from monopriors.relative_depth_models import (
|
|
9 |
from monopriors.relative_depth_models.base_relative_depth import BaseRelativePredictor
|
10 |
from monopriors.rr_logging_utils import (
|
11 |
log_relative_pred,
|
12 |
-
|
13 |
)
|
14 |
import rerun as rr
|
15 |
from gradio_rerun import Rerun
|
@@ -93,7 +93,7 @@ def load_models(
|
|
93 |
def on_submit(rgb: UInt8[np.ndarray, "h w 3"], remove_flying_pixels: bool):
|
94 |
stream: rr.BinaryStream = rr.binary_stream()
|
95 |
models_list = [MODEL_1, MODEL_2]
|
96 |
-
blueprint =
|
97 |
rr.send_blueprint(blueprint)
|
98 |
|
99 |
# resize the image to have a max dim of 1024
|
|
|
9 |
from monopriors.relative_depth_models.base_relative_depth import BaseRelativePredictor
|
10 |
from monopriors.rr_logging_utils import (
|
11 |
log_relative_pred,
|
12 |
+
create_relative_depth_blueprint,
|
13 |
)
|
14 |
import rerun as rr
|
15 |
from gradio_rerun import Rerun
|
|
|
93 |
def on_submit(rgb: UInt8[np.ndarray, "h w 3"], remove_flying_pixels: bool):
|
94 |
stream: rr.BinaryStream = rr.binary_stream()
|
95 |
models_list = [MODEL_1, MODEL_2]
|
96 |
+
blueprint = create_relative_depth_blueprint(models_list)
|
97 |
rr.send_blueprint(blueprint)
|
98 |
|
99 |
# resize the image to have a max dim of 1024
|