ilanaliouchouche commited on
Commit ·
f245e68
1
Parent(s): 7153768
app.py updated
Browse files
app.py
CHANGED
|
@@ -136,34 +136,34 @@ class HFSpaceChatBot:
|
|
| 136 |
).launch()
|
| 137 |
|
| 138 |
|
| 139 |
-
if __name__ == "__main__":
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
embedding_model_path=embedding_model_path,
|
| 152 |
vector_database_path=os.path.join(os.getcwd(), "chromadb"),
|
| 153 |
system_prompt=system_prompt,
|
| 154 |
temperature=0.4
|
| 155 |
)
|
| 156 |
|
| 157 |
-
|
| 158 |
|
| 159 |
-
|
| 160 |
You can ask my assistant (almost) anything about me! :D
|
| 161 |
|
| 162 |
You are currently using the Hugging Face Space version 🤗. A Docker image 🐳 for local use, utilizing a GGUF model is also available [here](https://github.com/ilanaliouchouche/my-ai-cv/pkgs/container/my-cv)
|
| 163 |
|
| 164 |
"""
|
| 165 |
|
| 166 |
-
|
| 167 |
title=title,
|
| 168 |
description=description
|
| 169 |
)
|
|
|
|
| 136 |
).launch()
|
| 137 |
|
| 138 |
|
| 139 |
+
# if __name__ == "__main__":
|
| 140 |
+
|
| 141 |
+
embedding_model_path = os.path.join(os.getcwd(), "model")
|
| 142 |
+
system_prompt = """You are now assuming the role of the personal assistant
|
| 143 |
+
of Ilan ALIOUCHOUCHE, a French Computer Science student.
|
| 144 |
+
Your task is to assist users by answering their
|
| 145 |
+
questions about Ilan. You have access to comprehensive
|
| 146 |
+
details about Ilan's education, skills, professional
|
| 147 |
+
experience, and interests.
|
| 148 |
+
""".replace("\n", "")
|
| 149 |
+
|
| 150 |
+
chatbot = HFSpaceChatBot(
|
| 151 |
embedding_model_path=embedding_model_path,
|
| 152 |
vector_database_path=os.path.join(os.getcwd(), "chromadb"),
|
| 153 |
system_prompt=system_prompt,
|
| 154 |
temperature=0.4
|
| 155 |
)
|
| 156 |
|
| 157 |
+
title = "🤖 Ilan's Personal Agent 🤖"
|
| 158 |
|
| 159 |
+
description = """
|
| 160 |
You can ask my assistant (almost) anything about me! :D
|
| 161 |
|
| 162 |
You are currently using the Hugging Face Space version 🤗. A Docker image 🐳 for local use, utilizing a GGUF model is also available [here](https://github.com/ilanaliouchouche/my-ai-cv/pkgs/container/my-cv)
|
| 163 |
|
| 164 |
"""
|
| 165 |
|
| 166 |
+
chatbot.launch(
|
| 167 |
title=title,
|
| 168 |
description=description
|
| 169 |
)
|