Spaces:
Running
on
Zero
Running
on
Zero
ethanweber
commited on
Commit
•
f221956
1
Parent(s):
f964b58
update
Browse files- app.py +3 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -99,6 +99,8 @@ def toggle_labeler_visibility(visible):
|
|
99 |
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=180)
|
104 |
def run_toon3d(processed_data_zip, labeled_data):
|
@@ -269,4 +271,4 @@ with gr.Blocks(title="Toon3D") as demo:
|
|
269 |
|
270 |
if __name__ == "__main__":
|
271 |
demo.queue(max_size=10)
|
272 |
-
demo.launch()
|
|
|
99 |
def check_input_toon3d(processed_data_zip, labeled_data):
|
100 |
if processed_data_zip is None:
|
101 |
raise gr.Error("No images uploaded!")
|
102 |
+
if labeled_data is None:
|
103 |
+
raise gr.Error("No labeled points uploaded!")
|
104 |
|
105 |
@spaces.GPU(duration=180)
|
106 |
def run_toon3d(processed_data_zip, labeled_data):
|
|
|
271 |
|
272 |
if __name__ == "__main__":
|
273 |
demo.queue(max_size=10)
|
274 |
+
demo.launch(share=True)
|
requirements.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
toon3d==0.0.
|
2 |
segment_anything @ git+https://github.com/facebookresearch/segment-anything.git
|
|
|
1 |
+
toon3d==0.0.5
|
2 |
segment_anything @ git+https://github.com/facebookresearch/segment-anything.git
|