Spaces:
Runtime error
Runtime error
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(
|
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 ********")
|