Spaces:
Sleeping
Sleeping
Avijit Ghosh
commited on
Commit
•
346cb40
1
Parent(s):
f1aa060
add api key
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def skintoneplot(hex_codes):
|
|
124 |
@spaces.GPU
|
125 |
def generate_images_plots(prompt, model_name):
|
126 |
global pipeline_text2image
|
127 |
-
pipeline_text2image = load_model(model_name
|
128 |
foldername = "temp"
|
129 |
Path(foldername).mkdir(parents=True, exist_ok=True)
|
130 |
images = [getimgen(prompt, model_name) for _ in range(10)]
|
|
|
124 |
@spaces.GPU
|
125 |
def generate_images_plots(prompt, model_name):
|
126 |
global pipeline_text2image
|
127 |
+
pipeline_text2image = load_model(model_name)
|
128 |
foldername = "temp"
|
129 |
Path(foldername).mkdir(parents=True, exist_ok=True)
|
130 |
images = [getimgen(prompt, model_name) for _ in range(10)]
|