Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,6 +134,10 @@ with gr.Blocks(
|
|
134 |
output_box = gr.JSON(label = "Output")
|
135 |
|
136 |
|
|
|
|
|
|
|
|
|
137 |
with gr.Tab("Configuration"):
|
138 |
with gr.Row():
|
139 |
btn_init = gr.Button("Init")
|
@@ -191,6 +195,17 @@ with gr.Blocks(
|
|
191 |
inputs=[input_box, top_k, score, db_col_textbox, db_index_textbox],
|
192 |
outputs=[output_box])
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
if __name__ == "__main__":
|
195 |
demo.queue()
|
196 |
demo.launch(server_name="0.0.0.0",
|
|
|
134 |
output_box = gr.JSON(label = "Output")
|
135 |
|
136 |
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
with gr.Tab("Configuration"):
|
142 |
with gr.Row():
|
143 |
btn_init = gr.Button("Init")
|
|
|
195 |
inputs=[input_box, top_k, score, db_col_textbox, db_index_textbox],
|
196 |
outputs=[output_box])
|
197 |
|
198 |
+
|
199 |
+
|
200 |
+
with gr.Tab("Command Viewer"):
|
201 |
+
with gr.Row():
|
202 |
+
with gr.Column(scale=10):
|
203 |
+
command_cmd = gr.Textbox(label="Command", placeholder="Enter a command")
|
204 |
+
with gr.Column(scale=1, min_width=BUTTON_MIN_WIDTH):
|
205 |
+
btn_cmd = gr.Button("Run Command", onclick=lambda: output_cmd.update(run_command(command_cmd.value)))
|
206 |
+
output_cmd = gr.Textbox(label="Command Output", content="")
|
207 |
+
|
208 |
+
|
209 |
if __name__ == "__main__":
|
210 |
demo.queue()
|
211 |
demo.launch(server_name="0.0.0.0",
|