mikemoz commited on
Commit
16c7043
1 Parent(s): bb8142f

disable udio song generation

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -37,11 +37,13 @@ def run_agent(role, goal, backstory, task_description, expected_output):
37
 
38
  # Execute crew kickoff
39
  result = crew.kickoff()
40
- song = make_song(task_description,result)
41
- print(song)
42
- song_path = song[0]['song_path']
 
43
 
44
- return [result,song_path]
 
45
 
46
  def make_song(task_description, result):
47
  song = udio_wrapper.create_song(prompt=task_description,custom_lyrics=result)
@@ -60,14 +62,15 @@ with gr.Blocks() as demo:
60
  submit_button = gr.Button("Run Agent")
61
 
62
  result = gr.Textbox(label="Result")
63
- player = gr.Audio(label="Audio")
64
 
65
 
66
 
67
  submit_button.click(
68
  fn=run_agent,
69
  inputs=[role, goal, backstory, task_description, expected_output],
70
- outputs=[result,player]
 
71
  )
72
 
73
 
 
37
 
38
  # Execute crew kickoff
39
  result = crew.kickoff()
40
+ #MH - udio wrapper not working - song generation disabled
41
+ #song = make_song(task_description,result)
42
+ #print(song)
43
+ #song_path = song[0]['song_path']
44
 
45
+ #return [result,song_path]
46
+ return song
47
 
48
  def make_song(task_description, result):
49
  song = udio_wrapper.create_song(prompt=task_description,custom_lyrics=result)
 
62
  submit_button = gr.Button("Run Agent")
63
 
64
  result = gr.Textbox(label="Result")
65
+ #player = gr.Audio(label="Audio")
66
 
67
 
68
 
69
  submit_button.click(
70
  fn=run_agent,
71
  inputs=[role, goal, backstory, task_description, expected_output],
72
+ #outputs=[result,player]
73
+ outputs=result
74
  )
75
 
76