Spaces:
Running
on
Zero
Running
on
Zero
Avijit Ghosh
commited on
Commit
·
1b1e359
1
Parent(s):
6d0dcd7
remove duplicate loads
Browse files
app.py
CHANGED
@@ -27,7 +27,6 @@ def loadpipeline():
|
|
27 |
)
|
28 |
pipeline_text2image = pipeline_text2image.to("cuda")
|
29 |
|
30 |
-
loadpipeline()
|
31 |
|
32 |
@spaces.GPU
|
33 |
def getimgen(prompt):
|
@@ -50,7 +49,6 @@ def loadblip():
|
|
50 |
torch_dtype=torch.float16
|
51 |
).to("cuda")
|
52 |
|
53 |
-
loadblip()
|
54 |
|
55 |
@spaces.GPU
|
56 |
def blip_caption_image(image, prefix):
|
|
|
27 |
)
|
28 |
pipeline_text2image = pipeline_text2image.to("cuda")
|
29 |
|
|
|
30 |
|
31 |
@spaces.GPU
|
32 |
def getimgen(prompt):
|
|
|
49 |
torch_dtype=torch.float16
|
50 |
).to("cuda")
|
51 |
|
|
|
52 |
|
53 |
@spaces.GPU
|
54 |
def blip_caption_image(image, prefix):
|