Skip to content

Commit ab07025

Browse files
FanwangMJackyZzZz
andauthored
Cleaning up (#258)
* 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 <[email protected]>
1 parent bbcd4a0 commit ab07025

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

.github/workflows/interface_auto.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- "master"
88
- "main"
99
- "webapp"
10-
- "jun-intro-maxmin"
10+
- "jun-gsoc-final"
1111
pull_request:
1212
branches:
1313
- "master"
@@ -33,20 +33,25 @@ jobs:
3333
with:
3434
python-version: 3.11
3535

36-
# Step 3: Build the Docker image to Docker Hub
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
3742
- name: Build Docker image
3843
run: |
39-
docker build . -t qcdevs/selector:latest
44+
docker build . -t qcdevs/selector:${{ env.VERSION }}
4045
41-
# Step 4: Push the Docker image to Docker Hub
46+
# Step 5: Push the Docker image to Docker Hub
4247
- name: Push Docker image
4348
env:
4449
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
4550
run: |
4651
docker login -u qcdevs -p $DOCKERHUB_TOKEN
47-
docker push qcdevs/selector:latest
52+
docker push qcdevs/selector:${{ env.VERSION }}
4853
49-
# Step 5: Replace the README.md file for Hugging Face
54+
# Step 6: Replace the README.md file for Hugging Face
5055
- name: Replace README for Hugging Face
5156
run: |
5257
mv README_hf.md README.md
@@ -55,7 +60,7 @@ jobs:
5560
git add README.md
5661
git commit -m "Replace README.md with README_hf.md for Hugging Face"
5762
58-
# Step 6: Push the app to Hugging Face
63+
# Step 7: Push the app to Hugging Face
5964
- name: Push to Hugging Face
6065
env:
6166
HF_TOKEN: ${{ secrets.HF_TOKEN }}

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ COPY . .
2626
EXPOSE 8501
2727

2828
# Command to run the app
29-
CMD ["streamlit", "run", "streamlit_app/app.py", "--server.enableXsrfProtection=false"]
29+
CMD ["streamlit", "run", "streamlit_app/Selector.py", "--server.enableXsrfProtection=false"]

README_hf.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: QC-Selector
2+
title: Selector
33
emoji: 🐳
44
colorFrom: purple
55
colorTo: gray

streamlit_app/app.py streamlit_app/Selector.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@
6363
selector library on [GitHub Issues](https://github.com/theochem/Selector/issues).
6464
For further information and inquiries please contact us at [email protected].
6565
66-
### Why QC-Selector?
66+
### Why Selector?
6767
In the world of chemistry, selecting the right subset of molecules is critical for a wide
6868
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,
69+
Selector offers a cutting-edge solution to streamline this process, empowering researchers,
7070
scientists, and developers to make smarter decisions faster.
7171
7272
### Key Features
7373
1. Import Your Dataset: Simply import your molecule dataset in various file formats, including SDF, SMILES, and InChi, to get started.
7474
7575
2. Define Selection Criteria: Specify the desired level of diversity and other relevant parameters to tailor the subset selection to your unique requirements.
7676
77-
3. Run the Analysis: Let QC-Selector’s powerful algorithms process your dataset and efficiently select the most diverse molecules.
77+
3. Run the Analysis: Let Selector’s powerful algorithms process your dataset and efficiently select the most diverse molecules.
7878
7979
4. Export: Explore the diverse subset and export the results for further analysis and integration into your projects.
8080
"""

0 commit comments

Comments
 (0)