Spaces:
Build error
Build error
updated app
Browse files- app.py +5 -3
- examples/log.csv +1 -1
app.py
CHANGED
@@ -133,8 +133,9 @@ def video_inference():
|
|
133 |
|
134 |
with gr.Blocks() as demo:
|
135 |
with gr.Tab("Image Inference"):
|
136 |
-
|
137 |
-
|
|
|
138 |
image_button = gr.Button("Predict")
|
139 |
with gr.Tab("Video Inference"):
|
140 |
video_inputs = [gr.Video(), gr.Image()]
|
@@ -143,7 +144,8 @@ with gr.Blocks() as demo:
|
|
143 |
title = "ROME: Realistic one-shot mesh-based head avatars"
|
144 |
examples = gr.Examples(
|
145 |
examples="examples/",
|
146 |
-
inputs=image_inputs
|
|
|
147 |
)
|
148 |
|
149 |
image_button.click(image_inference, inputs=image_inputs, outputs=image_output)
|
|
|
133 |
|
134 |
with gr.Blocks() as demo:
|
135 |
with gr.Tab("Image Inference"):
|
136 |
+
with gr.Column():
|
137 |
+
image_inputs = [gr.Image(type="pil"), gr.Image(type="pil")]
|
138 |
+
image_output = gr.Image()
|
139 |
image_button = gr.Button("Predict")
|
140 |
with gr.Tab("Video Inference"):
|
141 |
video_inputs = [gr.Video(), gr.Image()]
|
|
|
144 |
title = "ROME: Realistic one-shot mesh-based head avatars"
|
145 |
examples = gr.Examples(
|
146 |
examples="examples/",
|
147 |
+
inputs=image_inputs,
|
148 |
+
cache_examples=True
|
149 |
)
|
150 |
|
151 |
image_button.click(image_inference, inputs=image_inputs, outputs=image_output)
|
examples/log.csv
CHANGED
@@ -1 +1 @@
|
|
1 |
-
lincoln.jpg, taras2.jpg
|
|
|
1 |
+
examples/lincoln.jpg, examples/taras2.jpg
|