Spaces:
Sleeping
Sleeping
Asaad Almutareb
commited on
Commit
Β·
2315c49
1
Parent(s):
ffcbf6b
more changes to the gradio
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def create_gradio_interface(qa:RetrievalQAWithSourcesChain):
|
|
49 |
title = """
|
50 |
<div style="text-align: center;max-width: 1920px;">
|
51 |
<h1>Chat with your Documentation</h1>
|
52 |
-
<p style="text-align: center;">This is a privately
|
53 |
</div>
|
54 |
"""
|
55 |
|
@@ -67,13 +67,13 @@ def create_gradio_interface(qa:RetrievalQAWithSourcesChain):
|
|
67 |
with gr.Blocks(title="DocsBuddy AI π€΅π»ββοΈ", head=head_style) as demo:
|
68 |
with gr.Column(min_width=900, elem_id="col-container"):
|
69 |
gr.HTML(title)
|
70 |
-
|
|
|
|
|
71 |
#with gr.Row():
|
72 |
# clear = gr.Button("Clear")
|
73 |
chatbot.like(vote, None, None)
|
74 |
|
75 |
-
with gr.Row():
|
76 |
-
question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
|
77 |
with gr.Row():
|
78 |
clear = gr.ClearButton([chatbot, question])
|
79 |
|
|
|
49 |
title = """
|
50 |
<div style="text-align: center;max-width: 1920px;">
|
51 |
<h1>Chat with your Documentation</h1>
|
52 |
+
<p style="text-align: center;">This is a privately hosted Docs AI Buddy ;)</p>
|
53 |
</div>
|
54 |
"""
|
55 |
|
|
|
67 |
with gr.Blocks(title="DocsBuddy AI π€΅π»ββοΈ", head=head_style) as demo:
|
68 |
with gr.Column(min_width=900, elem_id="col-container"):
|
69 |
gr.HTML(title)
|
70 |
+
with gr.Row():
|
71 |
+
question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter ")
|
72 |
+
chatbot = gr.Chatbot([], elem_id="chatbot", label="DocuBuddy π€΅π»ββοΈ", height=660)
|
73 |
#with gr.Row():
|
74 |
# clear = gr.Button("Clear")
|
75 |
chatbot.like(vote, None, None)
|
76 |
|
|
|
|
|
77 |
with gr.Row():
|
78 |
clear = gr.ClearButton([chatbot, question])
|
79 |
|