Spaces:
Running on Zero
Running on Zero
fix gr update of subprocess error message
Browse files- utils/pipelines.py +2 -1
utils/pipelines.py
CHANGED
|
@@ -165,4 +165,5 @@ def generation_with_input_config(input_file, pdb_file, num_batches, num_designs_
|
|
| 165 |
return gr.update(value="Generation Successful"), directory, results
|
| 166 |
|
| 167 |
except subprocess.CalledProcessError as e:
|
| 168 |
-
|
|
|
|
|
|
| 165 |
return gr.update(value="Generation Successful"), directory, results
|
| 166 |
|
| 167 |
except subprocess.CalledProcessError as e:
|
| 168 |
+
print("subprocess threw an error", e.stderr)
|
| 169 |
+
return gr.update(value=f"Subprocess error:\n{e.stderr}"), None, None
|