nekofura commited on
Commit
0d19a20
1 Parent(s): d38e23d

Upload inference.py

Browse files
Files changed (1) hide show
  1. inference.py +0 -4
inference.py CHANGED
@@ -9,7 +9,6 @@ from io import BytesIO
9
  import threading
10
  import queue
11
 
12
- NGROK_AUTH_TOKEN = "2GSHB8Ao0IQGxmoaK2hHdbza9ON_5PpaRRiRw4CsZNsh4g8GN"
13
 
14
  app = FastAPI()
15
 
@@ -81,12 +80,9 @@ def get_status():
81
  return {'status': 'Server is running'}
82
 
83
  def start_ngrok():
84
- ngrok.set_auth_token(NGROK_AUTH_TOKEN)
85
-
86
  ngrok_tunnel = ngrok.connect(8000)
87
  print(' * Ngrok Tunnel URL:', ngrok_tunnel.public_url)
88
 
89
-
90
  if __name__ == '__main__':
91
  threading.Thread(target=process_request, daemon=True).start()
92
  threading.Thread(target=start_ngrok, daemon=True).start()
 
9
  import threading
10
  import queue
11
 
 
12
 
13
  app = FastAPI()
14
 
 
80
  return {'status': 'Server is running'}
81
 
82
  def start_ngrok():
 
 
83
  ngrok_tunnel = ngrok.connect(8000)
84
  print(' * Ngrok Tunnel URL:', ngrok_tunnel.public_url)
85
 
 
86
  if __name__ == '__main__':
87
  threading.Thread(target=process_request, daemon=True).start()
88
  threading.Thread(target=start_ngrok, daemon=True).start()