Spaces:
Running
Running
Update ui/gradio_ui.py
Browse files- ui/gradio_ui.py +5 -5
ui/gradio_ui.py
CHANGED
@@ -10,7 +10,7 @@ def ui():
|
|
10 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="pink", neutral_hue = "purple"), css=css) as ui:
|
11 |
qa_chain = gr.State()
|
12 |
gr.HTML("<center><h1>Ask your Manuscript</h1><center>")
|
13 |
-
gr.
|
14 |
gr.Markdown("""<h4>Upload your documents to initilize conversation system. It could take some time to preprocess documents if there are many of them.</h4>""")
|
15 |
|
16 |
with gr.Row():
|
@@ -74,8 +74,8 @@ def ui():
|
|
74 |
inputs=[qa_chain, msg, chatbot],
|
75 |
outputs=[qa_chain, msg, chatbot],
|
76 |
queue=False)
|
77 |
-
clear_btn.click(lambda:[None, 0,0,0],#"",0,"",0,"",0],
|
78 |
-
inputs=None,
|
79 |
-
outputs=[chatbot],
|
80 |
-
queue=False)
|
81 |
ui.queue().launch(debug=True)
|
|
|
10 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="pink", neutral_hue = "purple"), css=css) as ui:
|
11 |
qa_chain = gr.State()
|
12 |
gr.HTML("<center><h1>Ask your Manuscript</h1><center>")
|
13 |
+
gr.HTML("""<center><h3>Simple Chatbot demo with RAG</h3><center>""")
|
14 |
gr.Markdown("""<h4>Upload your documents to initilize conversation system. It could take some time to preprocess documents if there are many of them.</h4>""")
|
15 |
|
16 |
with gr.Row():
|
|
|
74 |
inputs=[qa_chain, msg, chatbot],
|
75 |
outputs=[qa_chain, msg, chatbot],
|
76 |
queue=False)
|
77 |
+
clear_btn.click(lambda:[None,None])#,#[None, 0,0,0],#"",0,"",0,"",0],
|
78 |
+
#inputs=None,
|
79 |
+
#outputs=[chatbot],
|
80 |
+
#queue=False)
|
81 |
ui.queue().launch(debug=True)
|