File size: 838 Bytes
07ffad3
1b7e4b0
07ffad3
 
a10540b
07ffad3
 
 
a15e1cf
e4b2161
 
31630cf
 
18b530b
 
 
 
42df98c
afb805b
a10540b
 
07ffad3
 
18b530b
ef4a283
 
 
 
 
 
a15e1cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import gradio as gr


def talk(message, history):
    return "hi"


DESCRIPTION = """
# This is a very long description
A rag pipeline with a chatbot feature

Resources used to build this project :

* embedding model : https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1
* dataset : https://huggingface.co/datasets/not-lain/wikipedia-small-3000-embedded (used mxbai-colbert-large-v1 to create the embedding column )
* faiss docs : https://huggingface.co/docs/datasets/v2.18.0/en/package_reference/main_classes#datasets.Dataset.add_faiss_index 
* chatbot : https://huggingface.co/google/gemma-7b-it

If you want to support my work consider clicking on the heart react button ❤️🤗

(testing the ui)
"""


demo = gr.ChatInterface(
    fn=talk,
    chatbot=gr.Chatbot(
    ),
    description=DESCRIPTION,
)
demo.launch(debug=True)