jannisborn commited on
Commit
4f58ce4
·
unverified ·
1 Parent(s): 3de3c62
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,10 +30,10 @@ def run_inference(
30
  confidence: bool,
31
  ):
32
  # Read SMILES
33
- print("smiles", smiles)
34
- if smiles is None and smiles_path is None:
35
  raise TypeError("Pass either single SMILES or a file")
36
- elif (smiles is not None) and (smiles_path is not None):
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
+ 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 == "" and (smiles_path is not None):
37
  raise TypeError("Pass either single SMILES or a file, not both")
38
  elif smiles is not None:
39
  smiles = [smiles]