SamT6 commited on
Commit
5155d23
1 Parent(s): d6ef859
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import json
8
  import requests
9
 
10
  def get_rest_url(model_name, host='127.0.0.1', port='8501', verb='predict'):
11
- url = 'https://{0}:{1}/v1/models/{2}:predict'.format(host, port, model_name)
12
 
13
  return url
14
 
@@ -79,5 +79,6 @@ iface = gr.Interface(
79
  Check out our project @ https://github.com/Soteria-ai/Soteria for more explantation! Demo below takes ~15 seconds to get the results.
80
  """,
81
  theme="grass",
 
82
  )
83
  iface.launch(share=False, show_error=True, inline=True, debug=True)
 
8
  import requests
9
 
10
  def get_rest_url(model_name, host='127.0.0.1', port='8501', verb='predict'):
11
+ url = 'http://{0}:{1}/v1/models/{2}:predict'.format(host, port, model_name)
12
 
13
  return url
14
 
 
79
  Check out our project @ https://github.com/Soteria-ai/Soteria for more explantation! Demo below takes ~15 seconds to get the results.
80
  """,
81
  theme="grass",
82
+ enable_queue=True
83
  )
84
  iface.launch(share=False, show_error=True, inline=True, debug=True)