Spaces:
Runtime error
Runtime error
Commit
·
289c46c
1
Parent(s):
ffdf6c9
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def get_pdb(pdb_code="", filepath=""):
|
|
9 |
if pdb_code is None or pdb_code == "":
|
10 |
try:
|
11 |
#move file to home folder to have it accessible from the web
|
12 |
-
copyfile(filepath.name, os.path.join(os.getcwd(), os.path.basename(filepath.name))
|
13 |
return os.path.join(os.getcwd(), os.path.basename(filepath.name))
|
14 |
except AttributeError as e:
|
15 |
return None
|
|
|
9 |
if pdb_code is None or pdb_code == "":
|
10 |
try:
|
11 |
#move file to home folder to have it accessible from the web
|
12 |
+
copyfile(filepath.name, os.path.join(os.getcwd(), os.path.basename(filepath.name)))
|
13 |
return os.path.join(os.getcwd(), os.path.basename(filepath.name))
|
14 |
except AttributeError as e:
|
15 |
return None
|