Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="
|
|
22 |
|
23 |
key = random.randint(0, 999)
|
24 |
|
25 |
-
API_URL = "https://api-inference.huggingface.co/models/"+ lora_id
|
26 |
|
27 |
API_TOKEN = random.choice([os.getenv("HF_READ_TOKEN")])
|
28 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
|
22 |
|
23 |
key = random.randint(0, 999)
|
24 |
|
25 |
+
API_URL = "https://api-inference.huggingface.co/models/"+ lora_id.strip()
|
26 |
|
27 |
API_TOKEN = random.choice([os.getenv("HF_READ_TOKEN")])
|
28 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|