Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -32,7 +32,7 @@ def get_sd_old(translated_txt):
|
|
32 |
print(f"translated_txt is : {translated_txt}")
|
33 |
#sd_inf = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion", use_auth_token='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')
|
34 |
print(f"stable Diff inf is : {sd_inf}")
|
35 |
-
sd_img_gallery = sd_inf(translated_txt, 4,45, 7.5,1024, fn_index=1
|
36 |
|
37 |
return sd_img_gallery[0]
|
38 |
|
|
|
32 |
print(f"translated_txt is : {translated_txt}")
|
33 |
#sd_inf = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion", use_auth_token='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')
|
34 |
print(f"stable Diff inf is : {sd_inf}")
|
35 |
+
sd_img_gallery = sd_inf([translated_txt, 4,45, 7.5,1024], fn_index=1)[0] #(prompt, samples, steps, scale, seed) #translated_txt
|
36 |
|
37 |
return sd_img_gallery[0]
|
38 |
|