Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -123,13 +123,10 @@ function() {
|
|
123 |
});
|
124 |
}
|
125 |
else {
|
126 |
-
local_data = [
|
127 |
-
|
128 |
-
{'ctx': '', 'pingpongs':[]}
|
129 |
-
|
130 |
-
{'ctx': '', 'pingpongs':[]},
|
131 |
-
{'ctx': '', 'pingpongs':[]}
|
132 |
-
];
|
133 |
setStorage('local_data', local_data);
|
134 |
}
|
135 |
|
@@ -193,6 +190,11 @@ with gr.Blocks(css=STYLE, elem_id='container-col') as block:
|
|
193 |
third = gr.Button("3rd", elem_classes=["custom-btn"])
|
194 |
fourth = gr.Button("4th", elem_classes=["custom-btn"])
|
195 |
fifth = gr.Button("5th", elem_classes=["custom-btn"])
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
with gr.Column(scale=8, elem_id="right-pane"):
|
198 |
with gr.Column(elem_id="initial-popup", visible=False) as example_block:
|
@@ -217,7 +219,10 @@ with gr.Blocks(css=STYLE, elem_id='container-col') as block:
|
|
217 |
elem_id="prompt-txt"
|
218 |
)
|
219 |
|
220 |
-
btns = [
|
|
|
|
|
|
|
221 |
for btn in btns:
|
222 |
btn.click(
|
223 |
set_chatbot,
|
|
|
123 |
});
|
124 |
}
|
125 |
else {
|
126 |
+
local_data = [];
|
127 |
+
for (let step = 0; step < 10; step++) {
|
128 |
+
local_data.push({'ctx': '', 'pingpongs':[]});
|
129 |
+
}
|
|
|
|
|
|
|
130 |
setStorage('local_data', local_data);
|
131 |
}
|
132 |
|
|
|
190 |
third = gr.Button("3rd", elem_classes=["custom-btn"])
|
191 |
fourth = gr.Button("4th", elem_classes=["custom-btn"])
|
192 |
fifth = gr.Button("5th", elem_classes=["custom-btn"])
|
193 |
+
sixth = gr.Button("5th", elem_classes=["custom-btn"])
|
194 |
+
seventh = gr.Button("5th", elem_classes=["custom-btn"])
|
195 |
+
eighth = gr.Button("5th", elem_classes=["custom-btn"])
|
196 |
+
nineth = gr.Button("5th", elem_classes=["custom-btn"])
|
197 |
+
tenth = gr.Button("5th", elem_classes=["custom-btn"])
|
198 |
|
199 |
with gr.Column(scale=8, elem_id="right-pane"):
|
200 |
with gr.Column(elem_id="initial-popup", visible=False) as example_block:
|
|
|
219 |
elem_id="prompt-txt"
|
220 |
)
|
221 |
|
222 |
+
btns = [
|
223 |
+
first, second, third, fourth, fifth,
|
224 |
+
sixth, seventh, eighth, nineth, tenth
|
225 |
+
]
|
226 |
for btn in btns:
|
227 |
btn.click(
|
228 |
set_chatbot,
|