Spaces:
Running
on
Zero
Running
on
Zero
Ashraf
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import spaces
|
| 3 |
from gradio_litmodel3d import LitModel3D
|
|
|
|
| 4 |
|
| 5 |
-
#
|
|
|
|
| 6 |
|
| 7 |
with gr.Blocks(theme=gr.themes.Default(), delete_cache=(600, 600)) as demo:
|
| 8 |
with gr.Row():
|
|
@@ -118,4 +120,5 @@ if __name__ == "__main__":
|
|
| 118 |
pipeline.preprocess_image(Image.fromarray(np.zeros((512, 512, 3), dtype=np.uint8))) # Preload rembg
|
| 119 |
except:
|
| 120 |
pass
|
| 121 |
-
demo.launch()
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import spaces
|
| 3 |
from gradio_litmodel3d import LitModel3D
|
| 4 |
+
import numpy as np
|
| 5 |
|
| 6 |
+
# Add this constant definition
|
| 7 |
+
MAX_SEED = np.iinfo(np.int32).max
|
| 8 |
|
| 9 |
with gr.Blocks(theme=gr.themes.Default(), delete_cache=(600, 600)) as demo:
|
| 10 |
with gr.Row():
|
|
|
|
| 120 |
pipeline.preprocess_image(Image.fromarray(np.zeros((512, 512, 3), dtype=np.uint8))) # Preload rembg
|
| 121 |
except:
|
| 122 |
pass
|
| 123 |
+
demo.launch()
|
| 124 |
+
|