Upload app.py
Browse files
app.py
CHANGED
@@ -40,8 +40,9 @@ example_questions = [
|
|
40 |
"What is communication server?",
|
41 |
"Show me an example of a configuration file.",
|
42 |
"How to create Protected File Directories ?",
|
43 |
-
"What are the attributes
|
44 |
"What is Mediator help?",
|
|
|
45 |
]
|
46 |
all_questions = [
|
47 |
"Can you explain Communication Server architecture?",
|
@@ -99,7 +100,7 @@ with gr.Blocks() as interface:
|
|
99 |
# Middle Section (Chat & LLM Response)
|
100 |
with gr.Column(scale=6):
|
101 |
gr.Markdown("## Chat with document(s)")
|
102 |
-
chat_history = gr.Textbox(label="Chat History", interactive=False, lines=
|
103 |
with gr.Row():
|
104 |
chat_input = gr.Textbox(label="Ask additional questions about the document...", show_label=False, placeholder="Ask additional questions about the document...", elem_id="chat-input", lines=3)
|
105 |
chat_btn = gr.Button("π Send", variant="primary", elem_id="send-button", scale=0)
|
@@ -117,15 +118,15 @@ with gr.Blocks() as interface:
|
|
117 |
inputs=chat_input,
|
118 |
label=""
|
119 |
)
|
120 |
-
question_dropdown = gr.Dropdown(
|
121 |
label="",
|
122 |
choices=all_questions,
|
123 |
interactive=True,
|
124 |
info="Choose a question from the dropdown to populate the query box."
|
125 |
-
)
|
126 |
|
127 |
-
gr.Markdown("## Logs")
|
128 |
-
history = gr.Textbox(label="Previous Queries", interactive=False)
|
129 |
|
130 |
gr.HTML("""
|
131 |
<style>
|
|
|
40 |
"What is communication server?",
|
41 |
"Show me an example of a configuration file.",
|
42 |
"How to create Protected File Directories ?",
|
43 |
+
"What are the attributes Azureblobstorage?",
|
44 |
"What is Mediator help?",
|
45 |
+
"What are third-party components used by the Mediator?"
|
46 |
]
|
47 |
all_questions = [
|
48 |
"Can you explain Communication Server architecture?",
|
|
|
100 |
# Middle Section (Chat & LLM Response)
|
101 |
with gr.Column(scale=6):
|
102 |
gr.Markdown("## Chat with document(s)")
|
103 |
+
chat_history = gr.Textbox(label="Chat History", interactive=False, lines=28, elem_id="chat-history", elem_classes=["chat-box"])
|
104 |
with gr.Row():
|
105 |
chat_input = gr.Textbox(label="Ask additional questions about the document...", show_label=False, placeholder="Ask additional questions about the document...", elem_id="chat-input", lines=3)
|
106 |
chat_btn = gr.Button("π Send", variant="primary", elem_id="send-button", scale=0)
|
|
|
118 |
inputs=chat_input,
|
119 |
label=""
|
120 |
)
|
121 |
+
'''question_dropdown = gr.Dropdown(
|
122 |
label="",
|
123 |
choices=all_questions,
|
124 |
interactive=True,
|
125 |
info="Choose a question from the dropdown to populate the query box."
|
126 |
+
)'''
|
127 |
|
128 |
+
#gr.Markdown("## Logs")
|
129 |
+
#history = gr.Textbox(label="Previous Queries", interactive=False)
|
130 |
|
131 |
gr.HTML("""
|
132 |
<style>
|