ysharma HF staff commited on
Commit
1981d2f
1 Parent(s): 8317b4b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def get_sd_old(translated_txt):
25
  #HF_TOKEN = os.environ.get("diffuse_new") or True
26
 
27
  #headers = {"Authorization": f"Bearer {HF_TOKEN}"}
28
- sd_inf = gr.Blocks.load(fn="spaces/stabilityai/stable-diffusion", use_auth_token=HF_TOKEN )#'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')
29
 
30
  def get_sd(translated_txt):
31
  print("******** Inside get_SD ********")
 
25
  #HF_TOKEN = os.environ.get("diffuse_new") or True
26
 
27
  #headers = {"Authorization": f"Bearer {HF_TOKEN}"}
28
+ sd_inf = gr.Blocks.load(name="spaces/stabilityai/stable-diffusion", api_key = HF_TOKEN) #use_auth_token=HF_TOKEN )#'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')
29
 
30
  def get_sd(translated_txt):
31
  print("******** Inside get_SD ********")