olamideba commited on
Commit
8d4dc0c
·
1 Parent(s): 49127ca

Update disclaimer

Browse files
.github/workflows/file-size.yaml CHANGED
@@ -1,16 +1,16 @@
1
- name: Check file size
2
- on: # or directly `on: [push]` to run the action on every push on any branch
3
- pull_request:
4
- branches: [main]
5
-
6
- # to run this workflow manually from the Actions tab
7
- workflow_dispatch:
8
-
9
- jobs:
10
- sync-to-hub:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Check large files
14
- uses: ActionsDesk/lfs-warning@v2.0
15
- with:
16
  filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
 
1
+ name: Check file size
2
+ on: # or directly `on: [push]` to run the action on every push on any branch
3
+ pull_request:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Check large files
14
+ uses: ActionsDesk/lfs-warning@v2.0
15
+ with:
16
  filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
.github/workflows/huggingface.yaml CHANGED
@@ -1,20 +1,20 @@
1
- name: Sync to Hugging Face hub
2
- on:
3
- push:
4
- branches: [main]
5
-
6
- # to run this workflow manually from the Actions tab
7
- workflow_dispatch:
8
-
9
- jobs:
10
- sync-to-hub:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v3
14
- with:
15
- fetch-depth: 0
16
- lfs: true
17
- - name: Push to hub
18
- env:
19
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
  run: git push https://NenJa:$HF_TOKEN@huggingface.co/spaces/NenJa/astra main
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ lfs: true
17
+ - name: Push to hub
18
+ env:
19
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
20
  run: git push https://NenJa:$HF_TOKEN@huggingface.co/spaces/NenJa/astra main
.vscode/launch.json CHANGED
@@ -1,17 +1,17 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "name": "Streamlit app",
6
- "type": "debugpy",
7
- "request": "launch",
8
- "module": "streamlit",
9
- "args": [
10
- "run",
11
- "app/main.py"
12
- ],
13
- "console": "integratedTerminal",
14
- "justMyCode": true
15
- },
16
- ]
17
- }
 
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "Streamlit app",
6
+ "type": "debugpy",
7
+ "request": "launch",
8
+ "module": "streamlit",
9
+ "args": [
10
+ "run",
11
+ "app/main.py"
12
+ ],
13
+ "console": "integratedTerminal",
14
+ "justMyCode": true
15
+ },
16
+ ]
17
+ }
app/main.py CHANGED
@@ -10,7 +10,7 @@ st.set_page_config(page_title="Chat-B.O.A", page_icon="🗨️", layout="centere
10
  st.title(":grey[Chat-B.O.A]")
11
  st.subheader("Development of a Chatbot for Scholarly Research using Retrieval Augmented Generation \n Balogun Olamide Abdulmujeeb \n\n 20/SCI01/042", divider="grey", anchor=False)
12
 
13
- disclaimer = "Disclaimer: This chatbot is specifically for natural language processing research and retrieves information from 2022 ACL Anthology papers only."
14
 
15
  if "messages" not in st.session_state:
16
  _messages: list[Any] = []
 
10
  st.title(":grey[Chat-B.O.A]")
11
  st.subheader("Development of a Chatbot for Scholarly Research using Retrieval Augmented Generation \n Balogun Olamide Abdulmujeeb \n\n 20/SCI01/042", divider="grey", anchor=False)
12
 
13
+ disclaimer = "Disclaimer: This chatbot is specifically for natural language processing research and retrieves information from 2022 ACL Anthology paper abstracts only."
14
 
15
  if "messages" not in st.session_state:
16
  _messages: list[Any] = []
app/scripts/entrypoint.py CHANGED
@@ -1,28 +1,28 @@
1
- #!/usr/bin/env python3
2
- """
3
- Entrypoint script that downloads assets and starts Streamlit.
4
- """
5
- import sys
6
- import subprocess
7
-
8
- def main():
9
- # Download assets first
10
- print("Downloading assets...")
11
- try:
12
- from app.scripts.download_assets import main as download_main
13
- download_main()
14
- except Exception as e:
15
- print(f"Warning: Asset download failed: {e}")
16
- print("Continuing anyway...")
17
-
18
- # Start Streamlit (this replaces the Python process)
19
- print("Starting Streamlit...")
20
- sys.exit(subprocess.run([
21
- "streamlit", "run",
22
- "app/main.py",
23
- "--server.port=8501",
24
- "--server.address=0.0.0.0"
25
- ]).returncode)
26
-
27
- if __name__ == "__main__":
28
  main()
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Entrypoint script that downloads assets and starts Streamlit.
4
+ """
5
+ import sys
6
+ import subprocess
7
+
8
+ def main():
9
+ # Download assets first
10
+ print("Downloading assets...")
11
+ try:
12
+ from app.scripts.download_assets import main as download_main
13
+ download_main()
14
+ except Exception as e:
15
+ print(f"Warning: Asset download failed: {e}")
16
+ print("Continuing anyway...")
17
+
18
+ # Start Streamlit (this replaces the Python process)
19
+ print("Starting Streamlit...")
20
+ sys.exit(subprocess.run([
21
+ "streamlit", "run",
22
+ "app/main.py",
23
+ "--server.port=8501",
24
+ "--server.address=0.0.0.0"
25
+ ]).returncode)
26
+
27
+ if __name__ == "__main__":
28
  main()