Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
|
4 |
def get_msg(name, request: gr.Request):
|
5 |
trueorigin = str(os.environ["ORIGIN"])
|
6 |
-
actualorigin =
|
7 |
if actualorigin == trueorigin:
|
8 |
return "Working"
|
9 |
return "Hello " + name + "!" + type(actualorigin)
|
|
|
3 |
|
4 |
def get_msg(name, request: gr.Request):
|
5 |
trueorigin = str(os.environ["ORIGIN"])
|
6 |
+
actualorigin = request.headers
|
7 |
if actualorigin == trueorigin:
|
8 |
return "Working"
|
9 |
return "Hello " + name + "!" + type(actualorigin)
|