text
Browse files
app.py
CHANGED
@@ -186,10 +186,8 @@ def infer(
|
|
186 |
if num_of_interpolation == 3:
|
187 |
# Addition or subtraction mode.
|
188 |
if operation_mode == 'Addition':
|
189 |
-
assert config.prompt_s is None, "Only one of prompt_a or prompt_s should be provided."
|
190 |
z_init_temp = _z_init[0] + _z_init[1]
|
191 |
elif operation_mode == 'Subtraction':
|
192 |
-
assert config.prompt_a is None, "Only one of prompt_a or prompt_s should be provided."
|
193 |
z_init_temp = _z_init[0] - _z_init[1]
|
194 |
else:
|
195 |
raise NotImplementedError("Either prompt_a or prompt_s must be provided for 3-sample mode.")
|
|
|
186 |
if num_of_interpolation == 3:
|
187 |
# Addition or subtraction mode.
|
188 |
if operation_mode == 'Addition':
|
|
|
189 |
z_init_temp = _z_init[0] + _z_init[1]
|
190 |
elif operation_mode == 'Subtraction':
|
|
|
191 |
z_init_temp = _z_init[0] - _z_init[1]
|
192 |
else:
|
193 |
raise NotImplementedError("Either prompt_a or prompt_s must be provided for 3-sample mode.")
|