Sean-Case
commited on
Commit
·
30689f9
1
Parent(s):
e4df9f2
Moved around submit and clear chat buttons
Browse files
app.py
CHANGED
|
@@ -117,16 +117,17 @@ with block:
|
|
| 117 |
with gr.Tab("Chatbot"):
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
-
chatbot = gr.Chatbot(height=
|
| 121 |
-
sources = gr.HTML(value = "Source paragraphs where I looked for answers will appear here", height=
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
message = gr.Textbox(
|
| 125 |
label="What's your question?",
|
| 126 |
lines=1,
|
| 127 |
)
|
| 128 |
-
|
| 129 |
-
|
|
|
|
| 130 |
|
| 131 |
examples_set = gr.Radio(label="Examples for the Lambeth Borough Plan",
|
| 132 |
#value = "What were the five pillars of the previous borough plan?",
|
|
@@ -135,9 +136,9 @@ with block:
|
|
| 135 |
"What are the commitments for Lambeth?",
|
| 136 |
"What are the 2030 outcomes for Lambeth?"])
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
|
| 142 |
|
| 143 |
with gr.Tab("Load in a different PDF file or web page to chat"):
|
|
|
|
| 117 |
with gr.Tab("Chatbot"):
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
+
chatbot = gr.Chatbot(height=1100)
|
| 121 |
+
sources = gr.HTML(value = "Source paragraphs where I looked for answers will appear here", height=1100)
|
| 122 |
|
| 123 |
with gr.Row():
|
| 124 |
message = gr.Textbox(
|
| 125 |
label="What's your question?",
|
| 126 |
lines=1,
|
| 127 |
)
|
| 128 |
+
with gr.Row():
|
| 129 |
+
submit = gr.Button(value="Send message", variant="secondary", scale = 1)
|
| 130 |
+
clear = gr.Button(value="Clear chat", variant="secondary", scale=0)
|
| 131 |
|
| 132 |
examples_set = gr.Radio(label="Examples for the Lambeth Borough Plan",
|
| 133 |
#value = "What were the five pillars of the previous borough plan?",
|
|
|
|
| 136 |
"What are the commitments for Lambeth?",
|
| 137 |
"What are the 2030 outcomes for Lambeth?"])
|
| 138 |
|
| 139 |
+
|
| 140 |
+
current_topic = gr.Textbox(label="Feature currently disabled - Keywords related to current conversation topic.", placeholder="Keywords related to the conversation topic will appear here")
|
| 141 |
+
|
| 142 |
|
| 143 |
|
| 144 |
with gr.Tab("Load in a different PDF file or web page to chat"):
|