satpalsr commited on
Commit
45521c2
·
1 Parent(s): e0e4e6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
  def get_msg(name, request: gr.Request):
4
- if dict(request.headers)['origin'] in os.environ["ORIGIN"]:
5
  return "Working"
6
  return "Hello " + name + "!" + os.environ["ORIGIN"]
7
 
 
1
  import gradio as gr
2
 
3
  def get_msg(name, request: gr.Request):
4
+ if dict(request.headers)['origin'] == str(os.environ["ORIGIN"]):
5
  return "Working"
6
  return "Hello " + name + "!" + os.environ["ORIGIN"]
7