Spaces:
Runtime error
Runtime error
igashov
commited on
Commit
·
7c181a3
1
Parent(s):
d5b42eb
fix
Browse files
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(
|
| 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:
|