ethanweber
commited on
Commit
•
f964b58
1
Parent(s):
07b9243
retry
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def check_input_images(input_images):
|
|
60 |
if input_images is None:
|
61 |
raise gr.Error("No images uploaded!")
|
62 |
|
63 |
-
@spaces.GPU(duration=
|
64 |
def process_images(input_images):
|
65 |
|
66 |
images_path = "/tmp/gradio/images"
|
@@ -100,7 +100,7 @@ def check_input_toon3d(processed_data_zip, labeled_data):
|
|
100 |
if processed_data_zip is None:
|
101 |
raise gr.Error("No images uploaded!")
|
102 |
|
103 |
-
@spaces.GPU(duration=
|
104 |
def run_toon3d(processed_data_zip, labeled_data):
|
105 |
|
106 |
data_prefix = "/tmp/gradio/inputs"
|
@@ -269,4 +269,4 @@ with gr.Blocks(title="Toon3D") as demo:
|
|
269 |
|
270 |
if __name__ == "__main__":
|
271 |
demo.queue(max_size=10)
|
272 |
-
demo.launch(
|
|
|
60 |
if input_images is None:
|
61 |
raise gr.Error("No images uploaded!")
|
62 |
|
63 |
+
@spaces.GPU(duration=180)
|
64 |
def process_images(input_images):
|
65 |
|
66 |
images_path = "/tmp/gradio/images"
|
|
|
100 |
if processed_data_zip is None:
|
101 |
raise gr.Error("No images uploaded!")
|
102 |
|
103 |
+
@spaces.GPU(duration=180)
|
104 |
def run_toon3d(processed_data_zip, labeled_data):
|
105 |
|
106 |
data_prefix = "/tmp/gradio/inputs"
|
|
|
269 |
|
270 |
if __name__ == "__main__":
|
271 |
demo.queue(max_size=10)
|
272 |
+
demo.launch()
|