AMontiB commited on
Commit
eac8a66
Β·
1 Parent(s): e313f7f

fix: use gr.Textbox instead of gr.Code to avoid schema bug

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -127,7 +127,12 @@ with demo:
127
  submit_btn = gr.Button("πŸ” Detect", variant="primary")
128
 
129
  with gr.Column():
130
- output_display = gr.Code(label="Detection Results", language="json", lines=10)
 
 
 
 
 
131
 
132
  gr.Markdown("""
133
  ---
 
127
  submit_btn = gr.Button("πŸ” Detect", variant="primary")
128
 
129
  with gr.Column():
130
+ output_display = gr.Textbox(
131
+ label="Detection Results",
132
+ lines=15,
133
+ max_lines=20,
134
+ show_copy_button=True
135
+ )
136
 
137
  gr.Markdown("""
138
  ---