fibmskrt commited on
Commit
8a6f0bc
1 Parent(s): 7de8636

fix: orig_name attr does not exist

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,9 +30,9 @@ def create_temp_file(path: str) -> str:
30
  return temp_path
31
 
32
 
33
- def main(property: str, data_file: gr.File):
34
 
35
- print(data_file, data_file.orig_name, data_file.name)
36
 
37
  if data_file is None:
38
  raise TypeError("You have to pass either an input file for the crystal model")
 
30
  return temp_path
31
 
32
 
33
+ def main(property: str, data_file: str):
34
 
35
+ print(data_file, data_file.name)
36
 
37
  if data_file is None:
38
  raise TypeError("You have to pass either an input file for the crystal model")