jannisborn commited on
Commit
81da107
·
unverified ·
2 Parent(s): 9a045e5 8a6f0bc
Files changed (4) hide show
  1. README.md +2 -3
  2. app.py +5 -5
  3. pre-requirements.txt +4 -1
  4. requirements.txt +9 -3
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 💡
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 4.36.0
8
  app_file: app.py
9
  pinned: false
10
  python_version: 3.8.13
@@ -12,5 +12,4 @@ pypi_version: 20.2.4
12
  duplicated_from: GT4SD/regression_transformer
13
  ---
14
 
15
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
16
-
 
4
  colorFrom: green
5
  colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 4.36.1
8
  app_file: app.py
9
  pinned: false
10
  python_version: 3.8.13
 
12
  duplicated_from: GT4SD/regression_transformer
13
  ---
14
 
15
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
app.py CHANGED
@@ -32,7 +32,7 @@ def create_temp_file(path: str) -> str:
32
 
33
  def main(property: str, data_file: str):
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")
@@ -94,10 +94,10 @@ if __name__ == "__main__":
94
  metadata_root = pathlib.Path(__file__).parent.joinpath("model_cards")
95
 
96
  examples = [
97
- ["Formation Energy", metadata_root.joinpath("7206075.cif")],
98
- ["Bulk moduli", metadata_root.joinpath("crystals.zip")],
99
- ["Metal Nonmetal Classifier", metadata_root.joinpath("metal.csv")],
100
- ["Bulk moduli", metadata_root.joinpath("9000046.cif")],
101
  ]
102
 
103
  with open(metadata_root.joinpath("article.md"), "r") as f:
 
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")
 
94
  metadata_root = pathlib.Path(__file__).parent.joinpath("model_cards")
95
 
96
  examples = [
97
+ ["Formation Energy", str(metadata_root.joinpath("7206075.cif"))],
98
+ ["Bulk moduli", str(metadata_root.joinpath("crystals.zip"))],
99
+ ["Metal Nonmetal Classifier", str(metadata_root.joinpath("metal.csv"))],
100
+ ["Bulk moduli", str(metadata_root.joinpath("9000046.cif"))],
101
  ]
102
 
103
  with open(metadata_root.joinpath("article.md"), "r") as f:
pre-requirements.txt CHANGED
@@ -1,2 +1,5 @@
1
  pip==20.2.4
2
- torch==1.12.1
 
 
 
 
1
  pip==20.2.4
2
+ torch==1.12.1
3
+ cmake
4
+ spglib
5
+ wheel
requirements.txt CHANGED
@@ -8,7 +8,8 @@ torch-sparse
8
  torch-geometric
9
  torchvision==0.14.1
10
  torchaudio==0.12.1
11
- gt4sd==1.3.1
 
12
  diffusers==0.6.0
13
  jupyter-packaging==0.10.3
14
  molgx>=0.22.0a1
@@ -19,12 +20,17 @@ ipykernel
19
  httpcore==0.15
20
  pymatgen>=2022.11.7
21
  PyTDC==0.3.7
22
- gradio==3.12.0
23
  markdown-it-py>=2.1.0
24
  mols2grid==1.1.1
25
  numpy==1.23.5
26
  pandas>=1.0.0,<2.0.0
27
- pydantic<2.0.0
 
 
 
 
 
28
  terminator @ git+https://github.com/IBM/regression-transformer@gt4sd
29
  guacamol_baselines @ git+https://github.com/GT4SD/[email protected]
30
  moses @ git+https://github.com/GT4SD/[email protected]
 
8
  torch-geometric
9
  torchvision==0.14.1
10
  torchaudio==0.12.1
11
+ torchmetrics==0.11.4
12
+ gt4sd>=1.4.2
13
  diffusers==0.6.0
14
  jupyter-packaging==0.10.3
15
  molgx>=0.22.0a1
 
20
  httpcore==0.15
21
  pymatgen>=2022.11.7
22
  PyTDC==0.3.7
23
+ gradio==4.36.1
24
  markdown-it-py>=2.1.0
25
  mols2grid==1.1.1
26
  numpy==1.23.5
27
  pandas>=1.0.0,<2.0.0
28
+ pydantic>=2.0.0
29
+ pydantic-settings>=2.0.0
30
+ networkx==3.0
31
+ keras==2.10.0
32
+ pytorch-lightning==1.7.7
33
+ transformers
34
  terminator @ git+https://github.com/IBM/regression-transformer@gt4sd
35
  guacamol_baselines @ git+https://github.com/GT4SD/[email protected]
36
  moses @ git+https://github.com/GT4SD/[email protected]