BhumikaMak commited on
Commit
69a852c
·
verified ·
1 Parent(s): 9e4b6dc

resolved netron html embedding

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ def process_image(sample_choice, uploaded_image, yolo_versions):
52
  # Start Netron backend
53
  def start_netron_backend(model_file):
54
  def serve_netron():
55
- netron.start(model_file, address='0.0.0.0', port=8080, browse=False) # Start Netron without browser
56
 
57
  # Launch Netron in a separate thread
58
  threading.Thread(target=serve_netron, daemon=True).start()
@@ -137,7 +137,7 @@ with gr.Blocks(css=custom_css) as interface:
137
  )
138
 
139
  # Display Netron iframe
140
- netron_display = view_netron_model()
141
 
142
  # Sample selection update
143
  sample_selection.change(
 
52
  # Start Netron backend
53
  def start_netron_backend(model_file):
54
  def serve_netron():
55
+ netron.start(model_file, address='0.0.0.0:8080', browse=False) # Start Netron without browser
56
 
57
  # Launch Netron in a separate thread
58
  threading.Thread(target=serve_netron, daemon=True).start()
 
137
  )
138
 
139
  # Display Netron iframe
140
+ netron_display = gr.HTML(view_netron_model())
141
 
142
  # Sample selection update
143
  sample_selection.change(