Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ flash_pipe.scheduler = EulerDiscreteScheduler.from_config(flash_pipe.scheduler.c
|
|
| 10 |
clip_slider = CLIPSliderXL(flash_pipe, device=torch.device("cuda"), iterations=50)
|
| 11 |
|
| 12 |
@spaces.GPU
|
| 13 |
-
def generate(slider_x, slider_y, prompt, x_concept_1, x_concept_2, y_concept_1, y_concept_2,
|
| 14 |
|
| 15 |
# check if avg diff for directions need to be re-calculated
|
| 16 |
if not sorted(slider_x) == sorted([x_concept_1, x_concept_2]):
|
|
|
|
| 10 |
clip_slider = CLIPSliderXL(flash_pipe, device=torch.device("cuda"), iterations=50)
|
| 11 |
|
| 12 |
@spaces.GPU
|
| 13 |
+
def generate(slider_x, slider_y, prompt, x_concept_1, x_concept_2, y_concept_1, y_concept_2, avg_diff_x, avg_diff_y):
|
| 14 |
|
| 15 |
# check if avg diff for directions need to be re-calculated
|
| 16 |
if not sorted(slider_x) == sorted([x_concept_1, x_concept_2]):
|