Skip to content

Commit d55c537

Browse files
authored
Merge pull request #98 from edubotics-ai/dev_branch
Dev branch to Main
2 parents c571e3b + b7d3eda commit d55c537

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+110
-65
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "v*"
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.x"
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine
23+
- name: Build and publish
24+
env:
25+
TWINE_USERNAME: __token__
26+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # from pypi
27+
run: |
28+
python setup.py sdist bdist_wheel
29+
twine upload dist/*

.github/workflows/push_to_hf_space.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
- name: Deploy Production (main) to HuggingFace
1919
env:
2020
HF_TOKEN: ${{ secrets.HF_TOKEN }}
21-
run: git push --force https://trgardos:[email protected]/spaces/dl4ds/dl4ds_tutor main:main
21+
run: git push --force https://trgardos:[email protected]/spaces/edubotics/dl4ds_tutor main:main

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{ "name":"Python Debugger: Module store_manager",
1818
"type":"debugpy",
1919
"request":"launch",
20-
"module":"modules.vectorstore.store_manager",
20+
"module":"edubotics_core.vectorstore.store_manager",
2121
"env": {"PYTHONPATH": "${workspaceFolder}/code"},
2222
"cwd": "${workspaceFolder}/code",
2323
"justMyCode": true
@@ -26,7 +26,7 @@
2626
"name": "Python Debugger: Module data_loader",
2727
"type": "debugpy",
2828
"request": "launch",
29-
"module": "modules.dataloader.data_loader",
29+
"module": "edubotics_core.dataloader.data_loader",
3030
"env": {"PYTHONPATH": "${workspaceFolder}/code"},
3131
"cwd": "${workspaceFolder}/code",
3232
"justMyCode": true

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ RUN --mount=type=secret,id=LITERAL_API_KEY_LOGGING,mode=0444,required=true
4040
RUN --mount=type=secret,id=CHAINLIT_AUTH_SECRET,mode=0444,required=true
4141

4242
# Default command to run the application
43-
CMD python -m modules.vectorstore.store_manager --config_file config/config.yml --project_config_file config/project_config.yml && python -m uvicorn app:app --host 0.0.0.0 --port 7860
43+
CMD python -m edubotics_core.vectorstore.store_manager --config_file config/config.yml --project_config_file config/project_config.yml && python -m uvicorn app:app --host 0.0.0.0 --port 7860

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ RUN ls -R /code
3535
EXPOSE 7860
3636

3737
# Default command to run the application
38-
CMD python -m modules.vectorstore.store_manager --config_file config/config.yml --project_config_file config/project_config.yml && python -m uvicorn app:app --host 0.0.0.0 --port 7860
38+
CMD python -m edubotics_core.vectorstore.store_manager --config_file config/config.yml --project_config_file config/project_config.yml && python -m uvicorn app:app --host 0.0.0.0 --port 7860

README.md

Lines changed: 6 additions & 6 deletions

apps/ai_tutor/.chainlit/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ default_collapse_content = true
6565
cot = "hidden"
6666

6767
# Link to your github repo. This will add a github button in the UI's header.
68-
github = "https://github.com/DL4DS/dl4ds_tutor"
68+
github = "https://github.com/edubotics-ai/edubot-core"
6969

7070
# Specify a CSS file that can be used to customize the user interface.
7171
# The CSS file can be served from the public directory or via an external link.

apps/ai_tutor/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
reset_tokens_for_user,
2222
check_user_cooldown,
2323
)
24-
from modules.chat_processor.helpers import get_user_details, update_user_info
24+
from edubotics_core.chat_processor.helpers import get_user_details, update_user_info
2525
from config.config_manager import config_manager
2626
import hashlib
2727

apps/ai_tutor/chainlit_app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
LITERAL_API_KEY_LOGGING,
55
LITERAL_API_URL,
66
)
7-
from modules.chat_processor.literal_ai import CustomLiteralDataLayer
7+
from edubotics_core.chat_processor.literal_ai import CustomLiteralDataLayer
88
import json
99
from typing import Any, Dict, no_type_check
1010
import chainlit as cl
11-
from modules.chat.llm_tutor import LLMTutor
12-
from modules.chat.helpers import (
11+
from edubotics_core.chat.llm_tutor import LLMTutor
12+
from edubotics_core.chat.helpers import (
1313
get_sources,
1414
get_history_chat_resume,
1515
get_history_setup_llm,
1616
# get_last_config,
1717
)
18-
from modules.chat_processor.helpers import (
18+
from edubotics_core.chat_processor.helpers import (
1919
update_user_info,
2020
get_user_details,
2121
)

apps/ai_tutor/config/config_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class TokenConfig(BaseModel):
104104

105105

106106
class MiscConfig(BaseModel):
107-
github_repo: HttpUrl = "https://github.com/DL4DS/dl4ds_tutor"
107+
github_repo: HttpUrl = "https://github.com/edubotics-ai/edubot-core"
108108
docs_website: HttpUrl = "https://dl4ds.github.io/dl4ds_tutor/"
109109

110110

0 commit comments

Comments
 (0)