ysharma HF staff commited on
Commit
79e2fac
1 Parent(s): 4771be2
Files changed (1) hide show
  1. app.py +1 -1
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 ) #(prompt, samples, steps, scale, seed) #translated_txt
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