Update app.py
Browse files
app.py
CHANGED
@@ -36,15 +36,14 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="blue")) as iface:
|
|
36 |
m = gr.Markdown()
|
37 |
iface.load(update_message, None, m)
|
38 |
request = gr.Request()
|
39 |
-
|
40 |
-
print(debug)
|
41 |
with gr.Tab("Speech2text prescription"):
|
42 |
with gr.Row():
|
43 |
with gr.Column():
|
44 |
audio_file = gr.Audio(sources=["upload", "microphone"], type="numpy", label="Audio")
|
45 |
submit_btn = gr.Button("Submit", variant="primary")
|
46 |
with gr.Column():
|
47 |
-
if
|
48 |
debug_transcript = gr.Textbox(label="Transcription Debug")
|
49 |
transcript = gr.Textbox(label="Transcription")
|
50 |
else:
|
|
|
36 |
m = gr.Markdown()
|
37 |
iface.load(update_message, None, m)
|
38 |
request = gr.Request()
|
39 |
+
print(request.username)
|
|
|
40 |
with gr.Tab("Speech2text prescription"):
|
41 |
with gr.Row():
|
42 |
with gr.Column():
|
43 |
audio_file = gr.Audio(sources=["upload", "microphone"], type="numpy", label="Audio")
|
44 |
submit_btn = gr.Button("Submit", variant="primary")
|
45 |
with gr.Column():
|
46 |
+
if request.username == os.environ.get("S2S_USER"):
|
47 |
debug_transcript = gr.Textbox(label="Transcription Debug")
|
48 |
transcript = gr.Textbox(label="Transcription")
|
49 |
else:
|