sudo-soldier commited on
Commit
271a312
·
verified ·
1 Parent(s): ff5d792

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,7 +55,6 @@ def process_youtube_url(url, uploaded_file, state):
55
  return mp3_filename, ringtone_filename_m4r, state
56
 
57
  except Exception as e:
58
- log.append(f"Error: {str(e)}")
59
  return None, None, state
60
 
61
  with gr.Blocks() as interface:
@@ -74,7 +73,7 @@ with gr.Blocks() as interface:
74
  iphone_ringtone = gr.File(label="iPhone Ringtone")
75
 
76
  process_button = gr.Button("Create Ringtones")
77
- process_button.click(process_youtube_url, inputs=[youtube_url, mp3_upload, state], outputs=[mp3_download, iphone_ringtone])
78
 
79
  interface.launch()
80
 
@@ -87,3 +86,4 @@ interface.launch()
87
 
88
 
89
 
 
 
55
  return mp3_filename, ringtone_filename_m4r, state
56
 
57
  except Exception as e:
 
58
  return None, None, state
59
 
60
  with gr.Blocks() as interface:
 
73
  iphone_ringtone = gr.File(label="iPhone Ringtone")
74
 
75
  process_button = gr.Button("Create Ringtones")
76
+ process_button.click(process_youtube_url, inputs=[youtube_url, mp3_upload, state], outputs=[mp3_download, iphone_ringtone, state])
77
 
78
  interface.launch()
79
 
 
86
 
87
 
88
 
89
+