igashov commited on
Commit
7c181a3
1 Parent(s): d5b42eb
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -103,7 +103,7 @@ def generate(input_file):
103
  try:
104
  path = input_file.name
105
  molecule = read_molecule(path)
106
- name = '.'.join(molecule.split('/')[-1].split('.')[:-1])
107
  out_sdf = f'results/{name}_generated.sdf'
108
  print(f'Input path={path}, name={name}')
109
  except Exception as e:
 
103
  try:
104
  path = input_file.name
105
  molecule = read_molecule(path)
106
+ name = '.'.join(path.split('/')[-1].split('.')[:-1])
107
  out_sdf = f'results/{name}_generated.sdf'
108
  print(f'Input path={path}, name={name}')
109
  except Exception as e: