delete sys access dev log
Browse files
app.py
CHANGED
@@ -216,13 +216,6 @@ with gr.Blocks(title="InternNav Model Inference Demo", css=custom_css) as demo:
|
|
216 |
video = gr.Video(interactive=False)
|
217 |
detail_md = gr.Markdown()
|
218 |
history_slots.append((slot, accordion, video, detail_md))
|
219 |
-
with gr.Accordion("查看系统访问日志(DEV ONLY)", open=False):
|
220 |
-
logs_display = gr.Markdown()
|
221 |
-
refresh_logs_btn = gr.Button("刷新日志", variant="secondary")
|
222 |
-
refresh_logs_btn.click(
|
223 |
-
update_log_display,
|
224 |
-
outputs=logs_display
|
225 |
-
)
|
226 |
gr.Examples(
|
227 |
examples=[
|
228 |
["demo1", "rdp", "vlnPE", "Walk past the left side of the bed and stop in the doorway."],
|
@@ -245,21 +238,15 @@ with gr.Blocks(title="InternNav Model Inference Demo", css=custom_css) as demo:
|
|
245 |
inputs=history_state,
|
246 |
outputs=[comp for slot in history_slots for comp in slot],
|
247 |
queue=True
|
248 |
-
).then(
|
249 |
-
fn=update_log_display,
|
250 |
-
outputs=logs_display,
|
251 |
)
|
252 |
demo.load(
|
253 |
fn=lambda: update_scene_display("demo1"),
|
254 |
outputs=[scene_description, scene_preview]
|
255 |
-
).then(
|
256 |
-
fn=update_log_display,
|
257 |
-
outputs=logs_display
|
258 |
)
|
259 |
demo.load(
|
260 |
fn=record_access,
|
261 |
inputs=None,
|
262 |
-
outputs=
|
263 |
queue=False
|
264 |
)
|
265 |
demo.queue(default_concurrency_limit=8)
|
|
|
216 |
video = gr.Video(interactive=False)
|
217 |
detail_md = gr.Markdown()
|
218 |
history_slots.append((slot, accordion, video, detail_md))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
gr.Examples(
|
220 |
examples=[
|
221 |
["demo1", "rdp", "vlnPE", "Walk past the left side of the bed and stop in the doorway."],
|
|
|
238 |
inputs=history_state,
|
239 |
outputs=[comp for slot in history_slots for comp in slot],
|
240 |
queue=True
|
|
|
|
|
|
|
241 |
)
|
242 |
demo.load(
|
243 |
fn=lambda: update_scene_display("demo1"),
|
244 |
outputs=[scene_description, scene_preview]
|
|
|
|
|
|
|
245 |
)
|
246 |
demo.load(
|
247 |
fn=record_access,
|
248 |
inputs=None,
|
249 |
+
outputs=None,
|
250 |
queue=False
|
251 |
)
|
252 |
demo.queue(default_concurrency_limit=8)
|