legend1234 JackyZzZzZ commited on
Commit
ab07025
·
unverified ·
1 Parent(s): bbcd4a0

Cleaning up (#258)

Browse files

* Remove any qc-selector naming

* Rename Converter for readability

* Rename app to selector in the sidebar

* Fix the command to run streamlit

* Enable auto versioning for docker images

---------

Co-authored-by: Jun Xia <xiaj8@uci.edu>

.github/workflows/interface_auto.yml CHANGED
@@ -7,7 +7,7 @@ on:
7
  - "master"
8
  - "main"
9
  - "webapp"
10
- - "jun-intro-maxmin"
11
  pull_request:
12
  branches:
13
  - "master"
@@ -33,20 +33,25 @@ jobs:
33
  with:
34
  python-version: 3.11
35
 
36
- # Step 3: Build the Docker image to Docker Hub
 
 
 
 
 
37
  - name: Build Docker image
38
  run: |
39
- docker build . -t qcdevs/selector:latest
40
 
41
- # Step 4: Push the Docker image to Docker Hub
42
  - name: Push Docker image
43
  env:
44
  DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
45
  run: |
46
  docker login -u qcdevs -p $DOCKERHUB_TOKEN
47
- docker push qcdevs/selector:latest
48
 
49
- # Step 5: Replace the README.md file for Hugging Face
50
  - name: Replace README for Hugging Face
51
  run: |
52
  mv README_hf.md README.md
@@ -55,7 +60,7 @@ jobs:
55
  git add README.md
56
  git commit -m "Replace README.md with README_hf.md for Hugging Face"
57
 
58
- # Step 6: Push the app to Hugging Face
59
  - name: Push to Hugging Face
60
  env:
61
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
7
  - "master"
8
  - "main"
9
  - "webapp"
10
+ - "jun-gsoc-final"
11
  pull_request:
12
  branches:
13
  - "master"
 
33
  with:
34
  python-version: 3.11
35
 
36
+ # Step 3: Get the short Git commit hash for versioning
37
+ - name: Get short Git commit hash
38
+ id: version
39
+ run: echo "VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
40
+
41
+ # Step 4: Build the Docker image and tag it with the short Git commit hash
42
  - name: Build Docker image
43
  run: |
44
+ docker build . -t qcdevs/selector:${{ env.VERSION }}
45
 
46
+ # Step 5: Push the Docker image to Docker Hub
47
  - name: Push Docker image
48
  env:
49
  DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
50
  run: |
51
  docker login -u qcdevs -p $DOCKERHUB_TOKEN
52
+ docker push qcdevs/selector:${{ env.VERSION }}
53
 
54
+ # Step 6: Replace the README.md file for Hugging Face
55
  - name: Replace README for Hugging Face
56
  run: |
57
  mv README_hf.md README.md
 
60
  git add README.md
61
  git commit -m "Replace README.md with README_hf.md for Hugging Face"
62
 
63
+ # Step 7: Push the app to Hugging Face
64
  - name: Push to Hugging Face
65
  env:
66
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
Dockerfile CHANGED
@@ -26,4 +26,4 @@ COPY . .
26
  EXPOSE 8501
27
 
28
  # Command to run the app
29
- CMD ["streamlit", "run", "streamlit_app/app.py", "--server.enableXsrfProtection=false"]
 
26
  EXPOSE 8501
27
 
28
  # Command to run the app
29
+ CMD ["streamlit", "run", "streamlit_app/Selector.py", "--server.enableXsrfProtection=false"]
README_hf.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: QC-Selector
3
  emoji: 🐳
4
  colorFrom: purple
5
  colorTo: gray
 
1
  ---
2
+ title: Selector
3
  emoji: 🐳
4
  colorFrom: purple
5
  colorTo: gray
streamlit_app/{app.py → Selector.py} RENAMED
@@ -63,10 +63,10 @@ st.markdown(
63
  selector library on [GitHub Issues](https://github.com/theochem/Selector/issues).
64
  For further information and inquiries please contact us at qcdevs@gmail.com.
65
 
66
- ### Why QC-Selector?
67
  In the world of chemistry, selecting the right subset of molecules is critical for a wide
68
  range of applications, including drug discovery, materials science, and molecular optimization.
69
- QC-Selector offers a cutting-edge solution to streamline this process, empowering researchers,
70
  scientists, and developers to make smarter decisions faster.
71
 
72
  ### Key Features
@@ -74,7 +74,7 @@ st.markdown(
74
 
75
  2. Define Selection Criteria: Specify the desired level of diversity and other relevant parameters to tailor the subset selection to your unique requirements.
76
 
77
- 3. Run the Analysis: Let QC-Selector’s powerful algorithms process your dataset and efficiently select the most diverse molecules.
78
 
79
  4. Export: Explore the diverse subset and export the results for further analysis and integration into your projects.
80
  """
 
63
  selector library on [GitHub Issues](https://github.com/theochem/Selector/issues).
64
  For further information and inquiries please contact us at qcdevs@gmail.com.
65
 
66
+ ### Why Selector?
67
  In the world of chemistry, selecting the right subset of molecules is critical for a wide
68
  range of applications, including drug discovery, materials science, and molecular optimization.
69
+ Selector offers a cutting-edge solution to streamline this process, empowering researchers,
70
  scientists, and developers to make smarter decisions faster.
71
 
72
  ### Key Features
 
74
 
75
  2. Define Selection Criteria: Specify the desired level of diversity and other relevant parameters to tailor the subset selection to your unique requirements.
76
 
77
+ 3. Run the Analysis: Let Selector’s powerful algorithms process your dataset and efficiently select the most diverse molecules.
78
 
79
  4. Export: Explore the diverse subset and export the results for further analysis and integration into your projects.
80
  """
streamlit_app/pages/{Converter.py → FeatureMatrixConversion.py} RENAMED
File without changes