Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,14 +31,13 @@ def morse_to_audio(morse_code, frequency=700, dot_duration=100):
|
|
31 |
|
32 |
return temp_file.name
|
33 |
|
34 |
-
with gr.Blocks(title="MTA", theme="
|
35 |
gr.Markdown(" # Morse To Audio")
|
36 |
-
with gr.
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
convert_button = gr.Button("Convert to Audio")
|
42 |
|
43 |
with gr.Column():
|
44 |
audio_output = gr.Audio(label="Morse Code Audio")
|
|
|
31 |
|
32 |
return temp_file.name
|
33 |
|
34 |
+
with gr.Blocks(title="MTA", theme="nevreal/blues") as demo:
|
35 |
gr.Markdown(" # Morse To Audio")
|
36 |
+
with gr.Column():
|
37 |
+
morse_input = gr.Textbox(label="Enter Morse Code")
|
38 |
+
freq_slider = gr.Slider(minimum=300, maximum=1000, value=700, label="Frequency (Hz)")
|
39 |
+
dot_duration_slider = gr.Slider(minimum=50, maximum=500, value=100, label="Dot Duration (ms)")
|
40 |
+
convert_button = gr.Button("Convert to Audio")
|
|
|
41 |
|
42 |
with gr.Column():
|
43 |
audio_output = gr.Audio(label="Morse Code Audio")
|