Spaces:
Paused
Paused
Commit
Β·
18952ad
1
Parent(s):
ffb1641
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ PromptHelper.compact_text_chunks = compact_text_chunks
|
|
14 |
with gr.Blocks(css="") as demo:
|
15 |
with gr.Box():
|
16 |
gr.Markdown("<h1 style='font-size: 48px; text-align: center;'>π LLaMa Difu π</h1>")
|
17 |
-
gr.Markdown("<h3 style='text-align: center;'
|
18 |
|
19 |
chat_context = gr.State([])
|
20 |
new_google_chat_context = gr.State([])
|
@@ -25,7 +25,7 @@ with gr.Blocks(css="") as demo:
|
|
25 |
gr.Markdown("**Indicies**")
|
26 |
with gr.Row():
|
27 |
with gr.Column(scale=12):
|
28 |
-
index_select = gr.Dropdown(choices=refresh_json_list(plain=True), value="
|
29 |
with gr.Column(min_width=30, scale=1):
|
30 |
index_refresh_btn = gr.Button("π").style()
|
31 |
|
@@ -35,7 +35,7 @@ with gr.Blocks(css="") as demo:
|
|
35 |
with gr.Column(scale=1):
|
36 |
chat_tone = gr.Radio(["smart", "concise", "creative"], label="chat_tone", type="index", value="concise")
|
37 |
with gr.Column(scale=3):
|
38 |
-
search_options_checkbox = gr.CheckboxGroup(label="
|
39 |
chatbot = gr.Chatbot()
|
40 |
with gr.Row():
|
41 |
with gr.Column(min_width=50, scale=1):
|
|
|
14 |
with gr.Blocks(css="") as demo:
|
15 |
with gr.Box():
|
16 |
gr.Markdown("<h1 style='font-size: 48px; text-align: center;'>π LLaMa Difu π</h1>")
|
17 |
+
gr.Markdown("<h3 style='text-align: center;'>π¦ Local LLM Do It For U π¦</h3>")
|
18 |
|
19 |
chat_context = gr.State([])
|
20 |
new_google_chat_context = gr.State([])
|
|
|
25 |
gr.Markdown("**Indicies**")
|
26 |
with gr.Row():
|
27 |
with gr.Column(scale=12):
|
28 |
+
index_select = gr.Dropdown(choices=refresh_json_list(plain=True), value="index", show_label=False, multiselect=False).style(container=False)
|
29 |
with gr.Column(min_width=30, scale=1):
|
30 |
index_refresh_btn = gr.Button("π").style()
|
31 |
|
|
|
35 |
with gr.Column(scale=1):
|
36 |
chat_tone = gr.Radio(["smart", "concise", "creative"], label="chat_tone", type="index", value="concise")
|
37 |
with gr.Column(scale=3):
|
38 |
+
search_options_checkbox = gr.CheckboxGroup(label="Your API Here", choices=["π Google", "π‘ Porch"])
|
39 |
chatbot = gr.Chatbot()
|
40 |
with gr.Row():
|
41 |
with gr.Column(min_width=50, scale=1):
|