Lord-Raven commited on
Commit
9119ff0
·
1 Parent(s): 4781f59

Adding another allowed origin.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ classifier = pipeline(task="zero-shot-classification", model=model, tokenizer=to
94
 
95
  def classify(data_string, request: gradio.Request):
96
  if request:
97
- if request.headers["origin"] not in ["https://statosphere-3704059fdd7e.c5v4v4jx6pq5.win", "https://crunchatize-77a78ffcc6a6.c5v4v4jx6pq5.win", "https://ravenok-statosphere-backend.hf.space", "https://tamabotchi-2dba63df3bf1.c5v4v4jx6pq5.win", "https://lord-raven.github.io"]:
98
  return "{}"
99
  data = json.loads(data_string)
100
  # if 'task' in data and data['task'] == 'few_shot_classification':
 
94
 
95
  def classify(data_string, request: gradio.Request):
96
  if request:
97
+ if request.headers["origin"] not in ["https://statosphere-3704059fdd7e.c5v4v4jx6pq5.win", "https://crunchatize-77a78ffcc6a6.c5v4v4jx6pq5.win", "https://tamabotchi-2dba63df3bf1.c5v4v4jx6pq5.win", "https://ravenok-statosphere-backend.hf.space", "https://lord-raven.github.io"]:
98
  return "{}"
99
  data = json.loads(data_string)
100
  # if 'task' in data and data['task'] == 'few_shot_classification':