Spaces:
Running
Running
update
Browse files
app.py
CHANGED
|
@@ -30,10 +30,9 @@ def run_inference(
|
|
| 30 |
confidence: bool,
|
| 31 |
):
|
| 32 |
# Read SMILES
|
| 33 |
-
print("smiles", type(smiles))
|
| 34 |
if smiles == "" and smiles_path is None:
|
| 35 |
raise TypeError("Pass either single SMILES or a file")
|
| 36 |
-
elif smiles
|
| 37 |
raise TypeError("Pass either single SMILES or a file, not both")
|
| 38 |
elif smiles is not None:
|
| 39 |
smiles = [smiles]
|
|
|
|
| 30 |
confidence: bool,
|
| 31 |
):
|
| 32 |
# Read SMILES
|
|
|
|
| 33 |
if smiles == "" and smiles_path is None:
|
| 34 |
raise TypeError("Pass either single SMILES or a file")
|
| 35 |
+
elif smiles != "" and smiles_path is not None:
|
| 36 |
raise TypeError("Pass either single SMILES or a file, not both")
|
| 37 |
elif smiles is not None:
|
| 38 |
smiles = [smiles]
|