Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,4 +122,23 @@ A rag pipeline with a chatbot feature
|
|
122 |
Resources used to build this project :
|
123 |
* embedding model : https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1
|
124 |
* dataset : https://huggingface.co/datasets/not-lain/wikipedia
|
125 |
-
* faiss docs : https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
Resources used to build this project :
|
123 |
* embedding model : https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1
|
124 |
* dataset : https://huggingface.co/datasets/not-lain/wikipedia
|
125 |
+
* faiss docs : https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset.add_faiss_index
|
126 |
+
* chatbot : https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct
|
127 |
+
"""
|
128 |
+
|
129 |
+
demo = gr.ChatInterface(
|
130 |
+
fn=talk,
|
131 |
+
chatbot=gr.Chatbot(
|
132 |
+
show_label=True,
|
133 |
+
show_share_button=True,
|
134 |
+
show_copy_button=True,
|
135 |
+
likeable=True,
|
136 |
+
layout="bubble",
|
137 |
+
bubble_full_width=False,
|
138 |
+
),
|
139 |
+
theme="Soft",
|
140 |
+
examples=[["what's anarchy ? "]],
|
141 |
+
title=TITLE,
|
142 |
+
description=DESCRIPTION,
|
143 |
+
)
|
144 |
+
demo.launch(debug=True)
|