marks commited on
Commit
0a42087
·
1 Parent(s): e36cfeb

Added the prompt box back in

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -70,16 +70,23 @@ class PodcasterUI:
70
  type="index" # Use index to get the second element (id) from tuple
71
  )
72
 
 
 
 
 
 
 
73
  submit_btn = gr.Button('Generate Podcast', variant='primary')
74
 
75
  with gr.Column(scale=1):
 
76
  audio_output = gr.Audio(label="Generated Podcast")
77
  status = gr.Textbox(label='Status', interactive=False)
78
 
79
  submit_btn.click(
80
  fn=self.on_submit,
81
- inputs=[url_input, openrouter_model, voice_model],
82
- outputs=[audio_output]
83
  )
84
 
85
  return interface
 
70
  type="index" # Use index to get the second element (id) from tuple
71
  )
72
 
73
+ prompt_input = gr.Textbox(
74
+ label="Custom Prompt",
75
+ placeholder="Enter a custom prompt to guide the podcast generation (optional)",
76
+ lines=3
77
+ )
78
+
79
  submit_btn = gr.Button('Generate Podcast', variant='primary')
80
 
81
  with gr.Column(scale=1):
82
+ script_output = gr.Textbox(label="Generated Script", interactive=False)
83
  audio_output = gr.Audio(label="Generated Podcast")
84
  status = gr.Textbox(label='Status', interactive=False)
85
 
86
  submit_btn.click(
87
  fn=self.on_submit,
88
+ inputs=[url_input, openrouter_model, voice_model, prompt_input],
89
+ outputs=[script_output, audio_output]
90
  )
91
 
92
  return interface