ysharma HF staff commited on
Commit
e6833c9
1 Parent(s): 14f1c15
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ import requests
15
  def get_sd(translated_txt):
16
  print("******** Inside get_SD ********")
17
  print(f"translated_txt is : {translated_txt}")
18
- sd_inf = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion")
19
  print(f"stable Diff inf is : {sd_inf}")
20
  tbox, sd_img_gallery = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion")(translated_txt, '4', '45', '7.5', 1024, fn_index=1) #(prompt, samples, steps, scale, seed)
21
 
 
15
  def get_sd(translated_txt):
16
  print("******** Inside get_SD ********")
17
  print(f"translated_txt is : {translated_txt}")
18
+ sd_inf = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion", use_auth_token=True)
19
  print(f"stable Diff inf is : {sd_inf}")
20
  tbox, sd_img_gallery = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion")(translated_txt, '4', '45', '7.5', 1024, fn_index=1) #(prompt, samples, steps, scale, seed)
21