PierreHanna commited on
Commit
1064e64
1 Parent(s): d34bc8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -31,7 +31,7 @@ def process_url(input_path):
31
  def process_file(input_path):
32
  return "", process(input_path)
33
 
34
- def process(input_path):
35
  client = SimbalsAPIClient(os.environ['TOKEN'], debug=True)
36
  parameters = client.prepare_request("31415", audio_file=audio_file)
37
 
@@ -113,12 +113,14 @@ with gr.Blocks() as demo:
113
  html = gr.HTML()
114
 
115
  with gr.Row():
116
- audio_input = gr.Textbox(placeholder='YouTube video URL', label='YouTube video URL')
117
- analyze_url_btn = gr.Button('Analyze URL')
 
118
 
119
  with gr.Row():
120
- audio_input_file = gr.Audio(type="filepath", label='Audio Input')
121
- analyze_file_btn = gr.Button('Analyze File')
 
122
 
123
 
124
  with gr.Row():
 
31
  def process_file(input_path):
32
  return "", process(input_path)
33
 
34
+ def process(audio_file):
35
  client = SimbalsAPIClient(os.environ['TOKEN'], debug=True)
36
  parameters = client.prepare_request("31415", audio_file=audio_file)
37
 
 
113
  html = gr.HTML()
114
 
115
  with gr.Row():
116
+ with gr.Column():
117
+ audio_input = gr.Textbox(placeholder='YouTube video URL', label='YouTube video URL')
118
+ analyze_url_btn = gr.Button('Analyze URL')
119
 
120
  with gr.Row():
121
+ with gr.Column():
122
+ audio_input_file = gr.Audio(type="filepath", label='Audio Input')
123
+ analyze_file_btn = gr.Button('Analyze File')
124
 
125
 
126
  with gr.Row():