Spaces:
Sleeping
Sleeping
peterkchung
commited on
Commit
•
7288e51
1
Parent(s):
6274930
Update app.py
Browse files
app.py
CHANGED
@@ -117,28 +117,28 @@ with gr.Blocks() as chatUI:
|
|
117 |
|
118 |
with gr.Row():
|
119 |
with gr.Group():
|
120 |
-
|
121 |
placeholder = "Please enter you question or request here...",
|
122 |
show_label = False,
|
123 |
scale = 2,
|
124 |
)
|
125 |
|
126 |
-
|
127 |
|
128 |
with gr.Row():
|
129 |
-
|
130 |
bubble_full_width = False,
|
131 |
scale = 2
|
132 |
)
|
133 |
|
134 |
with gr.Row():
|
135 |
-
|
136 |
placeholder = "Please enter you question or request here...",
|
137 |
show_label = False,
|
138 |
scale = 4,
|
139 |
)
|
140 |
|
141 |
-
|
142 |
|
143 |
with gr.Column():
|
144 |
with gr.Row():
|
@@ -161,33 +161,33 @@ with gr.Blocks() as chatUI:
|
|
161 |
Event functions
|
162 |
|
163 |
"""
|
164 |
-
queryInput.submit(
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
).then(
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
)
|
174 |
|
175 |
-
submitButton.click(
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
).then(
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
)
|
185 |
-
|
186 |
-
retryButton.click(
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
)
|
191 |
|
192 |
|
193 |
chatUI.queue()
|
|
|
117 |
|
118 |
with gr.Row():
|
119 |
with gr.Group():
|
120 |
+
gr.Textbox(
|
121 |
placeholder = "Please enter you question or request here...",
|
122 |
show_label = False,
|
123 |
scale = 2,
|
124 |
)
|
125 |
|
126 |
+
gr.Button("Submit", scale = 1)
|
127 |
|
128 |
with gr.Row():
|
129 |
+
gr.Chatbot(
|
130 |
bubble_full_width = False,
|
131 |
scale = 2
|
132 |
)
|
133 |
|
134 |
with gr.Row():
|
135 |
+
gr.Textbox(
|
136 |
placeholder = "Please enter you question or request here...",
|
137 |
show_label = False,
|
138 |
scale = 4,
|
139 |
)
|
140 |
|
141 |
+
gr.Button("Submit", scale = 1)
|
142 |
|
143 |
with gr.Column():
|
144 |
with gr.Row():
|
|
|
161 |
Event functions
|
162 |
|
163 |
"""
|
164 |
+
# queryInput.submit(
|
165 |
+
# fn = query_submit,
|
166 |
+
# inputs = [queryInput, chatOutput],
|
167 |
+
# outputs = [queryInput, chatOutput],
|
168 |
+
# queue = False,
|
169 |
+
# ).then(
|
170 |
+
# fn = query_completion,
|
171 |
+
# inputs = [queryInput, chatOutput],
|
172 |
+
# outputs = [chatOutput],
|
173 |
+
# )
|
174 |
|
175 |
+
# submitButton.click(
|
176 |
+
# fn = query_submit,
|
177 |
+
# inputs = [queryInput, chatOutput],
|
178 |
+
# outputs = [queryInput, chatOutput],
|
179 |
+
# queue = False,
|
180 |
+
# ).then(
|
181 |
+
# fn = query_completion,
|
182 |
+
# inputs = [queryInput, chatOutput],
|
183 |
+
# outputs = [chatOutput],
|
184 |
+
# )
|
185 |
+
|
186 |
+
# retryButton.click(
|
187 |
+
# fn = retry_query,
|
188 |
+
# inputs = [chatOutput],
|
189 |
+
# outputs = [chatOutput],
|
190 |
+
# )
|
191 |
|
192 |
|
193 |
chatUI.queue()
|