Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ def update_message(request: gr.Request):
|
|
12 |
|
13 |
def debug(request):
|
14 |
debug = False
|
|
|
15 |
if request.username == os.environ.get("S2S_USER"):
|
16 |
debug = True
|
17 |
return debug
|
@@ -36,6 +37,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="blue")) as iface:
|
|
36 |
iface.load(update_message, None, m)
|
37 |
logout_button = gr.Button("Logout", link="/logout")
|
38 |
debug = debug(gr.Request())
|
|
|
39 |
with gr.Tab("Speech2text prescription"):
|
40 |
with gr.Row():
|
41 |
with gr.Column():
|
|
|
12 |
|
13 |
def debug(request):
|
14 |
debug = False
|
15 |
+
print(request.username)
|
16 |
if request.username == os.environ.get("S2S_USER"):
|
17 |
debug = True
|
18 |
return debug
|
|
|
37 |
iface.load(update_message, None, m)
|
38 |
logout_button = gr.Button("Logout", link="/logout")
|
39 |
debug = debug(gr.Request())
|
40 |
+
print(debug)
|
41 |
with gr.Tab("Speech2text prescription"):
|
42 |
with gr.Row():
|
43 |
with gr.Column():
|