Spaces:
Running
on
Zero
Running
on
Zero
fix spaces gpu
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
from ominicontrol import generate_image
|
3 |
import os
|
4 |
|
@@ -194,7 +195,6 @@ def infer(
|
|
194 |
|
195 |
|
196 |
if USE_ZERO_GPU:
|
197 |
-
import spaces
|
198 |
infer = spaces.GPU(infer)
|
199 |
|
200 |
if __name__ == "__main__":
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
from ominicontrol import generate_image
|
4 |
import os
|
5 |
|
|
|
195 |
|
196 |
|
197 |
if USE_ZERO_GPU:
|
|
|
198 |
infer = spaces.GPU(infer)
|
199 |
|
200 |
if __name__ == "__main__":
|