Spaces:
Sleeping
Sleeping
Added spaces
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from pops import PopsPipelines
|
|
|
3 |
|
4 |
BLOCK_WIDTH = 250
|
5 |
BLOCK_HEIGHT = 270
|
@@ -7,10 +8,12 @@ FONT_SIZE = 3.5
|
|
7 |
|
8 |
pops_pipelines = PopsPipelines()
|
9 |
|
|
|
10 |
def run_equation_1(object_path, text, texture_path):
|
11 |
image = pops_pipelines.run_instruct_texture(object_path, text, texture_path)
|
12 |
return image
|
13 |
|
|
|
14 |
def run_equation_2(object_path, texture_path, scene_path):
|
15 |
image = pops_pipelines.run_texture_scene(object_path, texture_path, scene_path)
|
16 |
return image
|
|
|
1 |
import gradio as gr
|
2 |
from pops import PopsPipelines
|
3 |
+
import spaces
|
4 |
|
5 |
BLOCK_WIDTH = 250
|
6 |
BLOCK_HEIGHT = 270
|
|
|
8 |
|
9 |
pops_pipelines = PopsPipelines()
|
10 |
|
11 |
+
@spaces.GPU
|
12 |
def run_equation_1(object_path, text, texture_path):
|
13 |
image = pops_pipelines.run_instruct_texture(object_path, text, texture_path)
|
14 |
return image
|
15 |
|
16 |
+
@spaces.GPU
|
17 |
def run_equation_2(object_path, texture_path, scene_path):
|
18 |
image = pops_pipelines.run_texture_scene(object_path, texture_path, scene_path)
|
19 |
return image
|