Spaces:
Sleeping
Sleeping
AlekseyCalvin
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -49,9 +49,10 @@ class calculateDuration:
|
|
49 |
print(f"Elapsed time: {self.elapsed_time:.6f} seconds")
|
50 |
|
51 |
|
52 |
-
def update_selection(evt: gr.SelectData, width, height):
|
53 |
selected_lora = loras[evt.index]
|
54 |
new_placeholder = f"Type a prompt for {selected_lora['title']}"
|
|
|
55 |
lora_repo = selected_lora["repo"]
|
56 |
updated_text = f"### Selected: [{lora_repo}](https://huggingface.co/{lora_repo}) ✨"
|
57 |
if "aspect" in selected_lora:
|
|
|
49 |
print(f"Elapsed time: {self.elapsed_time:.6f} seconds")
|
50 |
|
51 |
|
52 |
+
def update_selection(evt: gr.SelectData, width, height, default_scale, lora_scale):
|
53 |
selected_lora = loras[evt.index]
|
54 |
new_placeholder = f"Type a prompt for {selected_lora['title']}"
|
55 |
+
prompt = selected_lora["prompt"]
|
56 |
lora_repo = selected_lora["repo"]
|
57 |
updated_text = f"### Selected: [{lora_repo}](https://huggingface.co/{lora_repo}) ✨"
|
58 |
if "aspect" in selected_lora:
|