proof
Browse files- app_image_to_3d.py +0 -8
- app_text_to_3d.py +2 -21
- app_text_to_gif.py +0 -20
app_image_to_3d.py
CHANGED
|
@@ -20,7 +20,6 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
| 20 |
"wget https://raw.githubusercontent.com/openai/shap-e/d99cedaea18e0989e340163dbaeb4b109fa9e8ec/shap_e/examples/example_data/corgi.png -O corgi.png"
|
| 21 |
)
|
| 22 |
)
|
| 23 |
-
examples = ["corgi.png"]
|
| 24 |
|
| 25 |
@spaces.GPU
|
| 26 |
def process_example_fn(image_path: str) -> str:
|
|
@@ -59,13 +58,6 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
| 59 |
value=64,
|
| 60 |
)
|
| 61 |
|
| 62 |
-
gr.Examples(
|
| 63 |
-
examples=examples,
|
| 64 |
-
inputs=image,
|
| 65 |
-
outputs=result,
|
| 66 |
-
fn=process_example_fn,
|
| 67 |
-
)
|
| 68 |
-
|
| 69 |
run_button.click(
|
| 70 |
fn=randomize_seed_fn,
|
| 71 |
inputs=[seed, randomize_seed],
|
|
|
|
| 20 |
"wget https://raw.githubusercontent.com/openai/shap-e/d99cedaea18e0989e340163dbaeb4b109fa9e8ec/shap_e/examples/example_data/corgi.png -O corgi.png"
|
| 21 |
)
|
| 22 |
)
|
|
|
|
| 23 |
|
| 24 |
@spaces.GPU
|
| 25 |
def process_example_fn(image_path: str) -> str:
|
|
|
|
| 58 |
value=64,
|
| 59 |
)
|
| 60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
run_button.click(
|
| 62 |
fn=randomize_seed_fn,
|
| 63 |
inputs=[seed, randomize_seed],
|
app_text_to_3d.py
CHANGED
|
@@ -9,18 +9,7 @@ from utils import randomize_seed_fn
|
|
| 9 |
|
| 10 |
|
| 11 |
def create_demo(model: Model) -> gr.Blocks:
|
| 12 |
-
|
| 13 |
-
"A chair that looks like an avocado",
|
| 14 |
-
"An airplane that looks like a banana",
|
| 15 |
-
"A spaceship",
|
| 16 |
-
"A birthday cupcake",
|
| 17 |
-
"A chair that looks like a tree",
|
| 18 |
-
"A green boot",
|
| 19 |
-
"A penguin",
|
| 20 |
-
"Ube ice cream cone",
|
| 21 |
-
"A bowl of vegetables",
|
| 22 |
-
]
|
| 23 |
-
|
| 24 |
@spaces.GPU
|
| 25 |
def process_example_fn(prompt: str) -> str:
|
| 26 |
return model.run_text(prompt)
|
|
@@ -72,15 +61,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
| 72 |
info="Choose a Output File",
|
| 73 |
multiselect=False
|
| 74 |
)
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
gr.Examples(
|
| 78 |
-
examples=examples,
|
| 79 |
-
inputs=prompt,
|
| 80 |
-
outputs=result,
|
| 81 |
-
fn=process_example_fn,
|
| 82 |
-
)
|
| 83 |
-
|
| 84 |
gr.on(
|
| 85 |
triggers=[prompt.submit, run_button.click],
|
| 86 |
fn=randomize_seed_fn,
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
def create_demo(model: Model) -> gr.Blocks:
|
| 12 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
@spaces.GPU
|
| 14 |
def process_example_fn(prompt: str) -> str:
|
| 15 |
return model.run_text(prompt)
|
|
|
|
| 61 |
info="Choose a Output File",
|
| 62 |
multiselect=False
|
| 63 |
)
|
| 64 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
gr.on(
|
| 66 |
triggers=[prompt.submit, run_button.click],
|
| 67 |
fn=randomize_seed_fn,
|
app_text_to_gif.py
CHANGED
|
@@ -9,18 +9,6 @@ from utils import randomize_seed_fn
|
|
| 9 |
|
| 10 |
|
| 11 |
def create_demo(model: Model) -> gr.Blocks:
|
| 12 |
-
examples = [
|
| 13 |
-
"A chair that looks like an avocado",
|
| 14 |
-
"An airplane that looks like a banana",
|
| 15 |
-
"A spaceship",
|
| 16 |
-
"A birthday cupcake",
|
| 17 |
-
"A chair that looks like a tree",
|
| 18 |
-
"A green boot",
|
| 19 |
-
"A penguin",
|
| 20 |
-
"Ube ice cream cone",
|
| 21 |
-
"A bowl of vegetables",
|
| 22 |
-
]
|
| 23 |
-
|
| 24 |
@spaces.GPU
|
| 25 |
def process_example_fn(prompt: str) -> str:
|
| 26 |
return model.run_text(prompt)
|
|
@@ -72,14 +60,6 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
| 72 |
info="Choose a Output File",
|
| 73 |
multiselect=False
|
| 74 |
)
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
gr.Examples(
|
| 78 |
-
examples=examples,
|
| 79 |
-
inputs=prompt,
|
| 80 |
-
outputs=result,
|
| 81 |
-
fn=process_example_fn,
|
| 82 |
-
)
|
| 83 |
|
| 84 |
gr.on(
|
| 85 |
triggers=[prompt.submit, run_button.click],
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
def create_demo(model: Model) -> gr.Blocks:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
@spaces.GPU
|
| 13 |
def process_example_fn(prompt: str) -> str:
|
| 14 |
return model.run_text(prompt)
|
|
|
|
| 60 |
info="Choose a Output File",
|
| 61 |
multiselect=False
|
| 62 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
gr.on(
|
| 65 |
triggers=[prompt.submit, run_button.click],
|