Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,6 @@ with gr.Blocks(title=CFG_APP.BOT_NAME, css="assets/style.css", theme=theme) as d
|
|
41 |
placeholder="Ask here your question and press enter",
|
42 |
)
|
43 |
|
44 |
-
query_mode = gr.Radio(choices=["HYDE", "Reformulation"], elem_id="type-emb", value="HYDE", label="Query Embedding's Mode")
|
45 |
-
|
46 |
ask_examples_hidden = gr.Textbox(elem_id="hidden-message")
|
47 |
|
48 |
examples_questions = gr.Examples(
|
@@ -52,12 +50,11 @@ with gr.Blocks(title=CFG_APP.BOT_NAME, css="assets/style.css", theme=theme) as d
|
|
52 |
)
|
53 |
|
54 |
with gr.Column(scale=1, variant="panel"):
|
55 |
-
gr.Markdown("### Sources")
|
56 |
sources_textbox = gr.Markdown(show_label=False)
|
57 |
|
58 |
ask.submit(
|
59 |
fn=chat,
|
60 |
-
inputs=[ask, state
|
61 |
outputs=[chatbot, state, sources_textbox],
|
62 |
)
|
63 |
ask.submit(lambda x: gr.update(value=""), [], [ask])
|
|
|
41 |
placeholder="Ask here your question and press enter",
|
42 |
)
|
43 |
|
|
|
|
|
44 |
ask_examples_hidden = gr.Textbox(elem_id="hidden-message")
|
45 |
|
46 |
examples_questions = gr.Examples(
|
|
|
50 |
)
|
51 |
|
52 |
with gr.Column(scale=1, variant="panel"):
|
|
|
53 |
sources_textbox = gr.Markdown(show_label=False)
|
54 |
|
55 |
ask.submit(
|
56 |
fn=chat,
|
57 |
+
inputs=[ask, state],
|
58 |
outputs=[chatbot, state, sources_textbox],
|
59 |
)
|
60 |
ask.submit(lambda x: gr.update(value=""), [], [ask])
|