Spaces:
Runtime error
Runtime error
AideepImage
commited on
Commit
β’
5149010
1
Parent(s):
84b71f7
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ model_path = snapshot_download("archerfmy0831/sd-t2i-360panoimage")
|
|
12 |
# Initialize pipelines
|
13 |
txt2panoimg = Text2360PanoramaImagePipeline(model_path, torch_dtype=torch.float16)
|
14 |
|
15 |
-
@spaces.
|
16 |
def text_to_pano(prompt, upscale):
|
17 |
input_data = {'prompt': prompt, 'upscale': upscale, 'refinement': False}
|
18 |
output = txt2panoimg(input_data)
|
|
|
12 |
# Initialize pipelines
|
13 |
txt2panoimg = Text2360PanoramaImagePipeline(model_path, torch_dtype=torch.float16)
|
14 |
|
15 |
+
@spaces.CPU(duration=200)
|
16 |
def text_to_pano(prompt, upscale):
|
17 |
input_data = {'prompt': prompt, 'upscale': upscale, 'refinement': False}
|
18 |
output = txt2panoimg(input_data)
|