Blane187 commited on
Commit
2ff28e5
·
verified ·
1 Parent(s): be71f97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
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="Hev832/niceandsimple") as demo:
35
  gr.Markdown(" # Morse To Audio")
36
- with gr.Row():
37
- with gr.Column():
38
- morse_input = gr.Textbox(label="Enter Morse Code")
39
- freq_slider = gr.Slider(minimum=300, maximum=1000, value=700, label="Frequency (Hz)")
40
- dot_duration_slider = gr.Slider(minimum=50, maximum=500, value=100, label="Dot Duration (ms)")
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")