Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
52 |
timeout = 100
|
53 |
|
54 |
|
55 |
-
def query(lora_id, prompt, is_negative=False, steps=28,
|
56 |
if prompt == "" or prompt == None:
|
57 |
return None
|
58 |
|
@@ -108,7 +108,7 @@ def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="
|
|
108 |
except Exception as e:
|
109 |
print(f"Error when trying to open the image: {e}")
|
110 |
return None
|
111 |
-
|
112 |
|
113 |
examples = [
|
114 |
"a beautiful woman with blonde hair and blue eyes",
|
|
|
52 |
timeout = 100
|
53 |
|
54 |
|
55 |
+
def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="DPM++ 2M Karras", num_images_per_prompt =1, seed=-1, strength=0.7, width=1024, height=1024):
|
56 |
if prompt == "" or prompt == None:
|
57 |
return None
|
58 |
|
|
|
108 |
except Exception as e:
|
109 |
print(f"Error when trying to open the image: {e}")
|
110 |
return None
|
111 |
+
|
112 |
|
113 |
examples = [
|
114 |
"a beautiful woman with blonde hair and blue eyes",
|