aldigobbler commited on
Commit
f574e23
·
verified ·
1 Parent(s): cd419d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -451,9 +451,8 @@ def start_server_background():
451
  os.chdir(original_cwd)
452
  return False
453
 
454
- def create_gradio_interface():
455
  """Create and return the Gradio interface"""
456
- global server_ip
457
  server = JavaServer.lookup(tunnel_url)
458
  status = server.status()
459
  latency = server.ping()
@@ -546,7 +545,7 @@ if __name__ == "__main__":
546
  time.sleep(10)
547
 
548
  print("\n=== Starting Gradio Interface ===")
549
- demo = create_gradio_interface()
550
 
551
  # Launch Gradio interface
552
  demo.launch(
 
451
  os.chdir(original_cwd)
452
  return False
453
 
454
+ def create_gradio_interface(tunnel_url):
455
  """Create and return the Gradio interface"""
 
456
  server = JavaServer.lookup(tunnel_url)
457
  status = server.status()
458
  latency = server.ping()
 
545
  time.sleep(10)
546
 
547
  print("\n=== Starting Gradio Interface ===")
548
+ demo = create_gradio_interface(tunnel_url)
549
 
550
  # Launch Gradio interface
551
  demo.launch(