Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- README.md +1 -6
- README1.md +37 -0
- src/ai/data_loader.py +0 -1
README.md
CHANGED
|
@@ -3,10 +3,5 @@ title: selfAI
|
|
| 3 |
app_file: app.py
|
| 4 |
sdk: gradio
|
| 5 |
sdk_version: 5.42.0
|
| 6 |
-
emoji: π©βπ»
|
| 7 |
-
colorFrom: yellow
|
| 8 |
-
colorTo: pink
|
| 9 |
-
pinned: true
|
| 10 |
-
short_description: A lightweight AI-powered app
|
| 11 |
---
|
| 12 |
-
|
|
|
|
| 3 |
app_file: app.py
|
| 4 |
sdk: gradio
|
| 5 |
sdk_version: 5.42.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
+
A lightweight chatbot app
|
README1.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
uv venv
|
| 2 |
+
|
| 3 |
+
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
|
| 4 |
+
.\.venv\Scripts\Activate.ps1
|
| 5 |
+
|
| 6 |
+
uv pip install --requirements requirements.txt
|
| 7 |
+
|
| 8 |
+
.\.venv\Scripts\python.exe -m ensurepip --upgrade
|
| 9 |
+
|
| 10 |
+
.\.venv\Scripts\python.exe -m pip install --upgrade pip
|
| 11 |
+
.\.venv\Scripts\python.exe -m pip install notebook ipykernel
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
.\.venv\Scripts\python.exe -m ipykernel install --user --name=selfAI --display-name "Python (.venv)"
|
| 15 |
+
|
| 16 |
+
.\.venv\Scripts\jupyter.exe notebook
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
reactivate everytime
|
| 20 |
+
.\.venv\Scripts\Activate.ps1
|
| 21 |
+
.\.venv\Scripts\jupyter.exe notebook
|
| 22 |
+
|
| 23 |
+
execute below for pythn file
|
| 24 |
+
.\.venv\Scripts\python app.py
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
.\.venv\Scripts\poetry add jupytext
|
| 28 |
+
|
| 29 |
+
# Convert one notebook β plain .py (no cell markers)
|
| 30 |
+
.\.venv\Scripts\poetry run jupytext --to py path/to/notebook.ipynb
|
| 31 |
+
|
| 32 |
+
# Convert all notebooks in a folder
|
| 33 |
+
.\.venv\Scripts\poetry run jupytext --to py notebooks/*.ipynb
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
give your source code
|
| 37 |
+
|
src/ai/data_loader.py
CHANGED
|
@@ -27,7 +27,6 @@ def system_prompt(self):
|
|
| 27 |
"Be honest.If you are unsure on how to answer any question, use your record_unknown_question tool to record the question that you couldn't answerr β even if it seems minor or unrelated to career topics.\n\n"
|
| 28 |
|
| 29 |
"If a user begins a conversation, guide them toward sharing their email so they can be contacted directly. "
|
| 30 |
-
"Ask for their email address politely and record it using your record_user_details tool for future use.\n\n"
|
| 31 |
|
| 32 |
"Do not reference internal tools or systems when requesting contact information β just ask in a natural and professional manner.\n\n"
|
| 33 |
|
|
|
|
| 27 |
"Be honest.If you are unsure on how to answer any question, use your record_unknown_question tool to record the question that you couldn't answerr β even if it seems minor or unrelated to career topics.\n\n"
|
| 28 |
|
| 29 |
"If a user begins a conversation, guide them toward sharing their email so they can be contacted directly. "
|
|
|
|
| 30 |
|
| 31 |
"Do not reference internal tools or systems when requesting contact information β just ask in a natural and professional manner.\n\n"
|
| 32 |
|