Update app.py
Browse files
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']
|
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 |
|