Lord-Raven commited on
Commit
54d574f
·
1 Parent(s): a13235b

Adding another allowed origin.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -97,7 +97,7 @@ onnx_few_shot_model = OnnxSetFitModel(ort_model, few_shot_tokenizer, few_shot_mo
97
 
98
  def classify(data_string, request: gradio.Request):
99
  if request:
100
- if request.headers["origin"] not in ["https://statosphere-3704059fdd7e.c5v4v4jx6pq5.win", "https://crunchatize-77a78ffcc6a6.c5v4v4jx6pq5.win", "https://ravenok-statosphere-backend.hf.space"]:
101
  return "{}"
102
  data = json.loads(data_string)
103
  if 'task' in data and data['task'] == 'few_shot_classification':
 
97
 
98
  def classify(data_string, request: gradio.Request):
99
  if request:
100
+ if request.headers["origin"] not in ["https://statosphere-3704059fdd7e.c5v4v4jx6pq5.win", "https://crunchatize-77a78ffcc6a6.c5v4v4jx6pq5.win", "https://ravenok-statosphere-backend.hf.space", "https://lord-raven.github.io"]:
101
  return "{}"
102
  data = json.loads(data_string)
103
  if 'task' in data and data['task'] == 'few_shot_classification':