Spaces:
Sleeping
Sleeping
File size: 954 Bytes
07ffad3 1b7e4b0 07ffad3 a10540b 07ffad3 e4b2161 31630cf 18b530b 42df98c afb805b a10540b 07ffad3 18b530b ef4a283 e1ca399 ef4a283 18b530b |
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 32 33 34 35 36 |
import gradio as gr
def talk(message, history):
return "hi"
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(
show_label=True,
show_share_button=True,
show_copy_button=True,
likeable=True,
),
examples=[["what's anarchy ? "]],
description=DESCRIPTION,
)
demo.launch(debug=True)
|