Update app_text_to_3d.py
Browse files- app_text_to_3d.py +3 -2
app_text_to_3d.py
CHANGED
@@ -10,7 +10,8 @@ caption = gr.load(name="spaces/fffiloni/CoCa-clone")
|
|
10 |
|
11 |
def create_image_caption(image_init):
|
12 |
cap = caption(image_init, "Beam search", 1.2, 0.5, 5, 20, fn_index=0)
|
13 |
-
|
|
|
14 |
|
15 |
def create_demo(model: Model) -> gr.Blocks:
|
16 |
|
@@ -47,7 +48,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
47 |
value=64)
|
48 |
|
49 |
|
50 |
-
image_init.change(fn=create_image_caption, inputs=[image_init], outputs=[prompt])
|
51 |
inputs = [
|
52 |
prompt,
|
53 |
seed,
|
|
|
10 |
|
11 |
def create_image_caption(image_init):
|
12 |
cap = caption(image_init, "Beam search", 1.2, 0.5, 5, 20, fn_index=0)
|
13 |
+
print("cap: " + cap)
|
14 |
+
return cap, gr.update(visible=True)
|
15 |
|
16 |
def create_demo(model: Model) -> gr.Blocks:
|
17 |
|
|
|
48 |
value=64)
|
49 |
|
50 |
|
51 |
+
image_init.change(fn=create_image_caption, inputs=[image_init], outputs=[prompt, run_button])
|
52 |
inputs = [
|
53 |
prompt,
|
54 |
seed,
|