Skip to content

Commit

Permalink
update available sources
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-sol committed Jul 27, 2024
1 parent 187d389 commit dde771e
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions scripts/gradio-ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,25 @@

AVAILABLE_SOURCES_UI = [
"HF Transformers",
"PEFT",
"TRL",
"LlamaIndex Docs",
"Towards AI Blog",
"Wikipedia",
"OpenAI Docs",
"LangChain Docs",
"LLama-Index Docs",
# "Wikipedia",
# "OpenAI Docs",
# "LangChain Docs",
"RAG Course",
]

AVAILABLE_SOURCES = [
"HF_Transformers",
"PEFT",
"TRL",
"LlamaIndex",
"towards_ai_blog",
"wikipedia",
"openai_docs",
"langchain_docs",
"llama_index_docs",
# "wikipedia",
# "openai_docs",
# "langchain_docs",
"rag_course",
]

Expand Down Expand Up @@ -360,7 +364,7 @@ def vote(data: gr.LikeData):

accordion = gr.Accordion(label="Customize Sources (Click to expand)", open=False)
sources = gr.CheckboxGroup(
AVAILABLE_SOURCES_UI, label="Sources", value="HF Transformers", interactive=False # type: ignore
AVAILABLE_SOURCES_UI, label="Sources", value=["HF Transformers", "PEFT", "TRL", "LlamaIndex Docs"], interactive=False # type: ignore
)
model = gr.Dropdown(
[
Expand Down

0 comments on commit dde771e

Please sign in to comment.