Spaces:
Running on Zero
Running on Zero
increase maximum nb designs per batch
Browse files- app.py +1 -1
- utils/handle_events.py +1 -1
app.py
CHANGED
|
@@ -66,7 +66,7 @@ with gr.Blocks(title="RFD3 Test") as demo:
|
|
| 66 |
label="Number of Designs per Batch",
|
| 67 |
precision=0,
|
| 68 |
minimum=1,
|
| 69 |
-
maximum=
|
| 70 |
)
|
| 71 |
num_batches= gr.Number(
|
| 72 |
value=5,
|
|
|
|
| 66 |
label="Number of Designs per Batch",
|
| 67 |
precision=0,
|
| 68 |
minimum=1,
|
| 69 |
+
maximum=16
|
| 70 |
)
|
| 71 |
num_batches= gr.Number(
|
| 72 |
value=5,
|
utils/handle_events.py
CHANGED
|
@@ -130,6 +130,6 @@ def give_run_status(config_ready, scaffold_ready, num_batches, num_designs_per_b
|
|
| 130 |
elif config_ready == "upload" and scaffold_ready == "no_input":
|
| 131 |
return gr.update(value=f"Running unconditional generation for {num_batches} batches of {num_designs_per_batch}, config uploaded from file {os.path.basename(config_upload)}")
|
| 132 |
elif config_ready=="upload" and scaffold_ready=="upload":
|
| 133 |
-
return gr.update(value=f"Running conditional generation for {num_batches} batches of {num_designs_per_batch}, config uploaded from file {config_upload}, scaffold uploaded a {scaffold_upload}")
|
| 134 |
else:
|
| 135 |
return gr.update(value=f"Not implemented yet")
|
|
|
|
| 130 |
elif config_ready == "upload" and scaffold_ready == "no_input":
|
| 131 |
return gr.update(value=f"Running unconditional generation for {num_batches} batches of {num_designs_per_batch}, config uploaded from file {os.path.basename(config_upload)}")
|
| 132 |
elif config_ready=="upload" and scaffold_ready=="upload":
|
| 133 |
+
return gr.update(value=f"Running conditional generation for {num_batches} batches of {num_designs_per_batch}, config uploaded from file {os.path.basename(config_upload)}, scaffold uploaded a {os.path.basename(scaffold_upload)}")
|
| 134 |
else:
|
| 135 |
return gr.update(value=f"Not implemented yet")
|