bluenevus commited on
Commit
8ea10e8
·
verified ·
1 Parent(s): bc010fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -29
app.py CHANGED
@@ -150,40 +150,12 @@ language_names = {
150
  # Get voice list (this should be run once at startup)
151
  voice_dict = asyncio.run(get_voice_list())
152
 
153
- # Layout
154
-
155
  # Layout
156
  app.layout = dbc.Container([
157
  html.H1("AI Podcast Generator", className="my-4"),
158
 
159
  dbc.Row([
160
- # Left Column
161
- dbc.Col([
162
- dbc.Card([
163
- dbc.CardBody([
164
- dcc.Loading(
165
- id="loading-script",
166
- type="default",
167
- children=[
168
- dbc.Progress(id="script-progress", value=0, className="my-3"),
169
- dbc.Textarea(id="script-output", rows=20, className="my-3"),
170
- ]
171
- ),
172
- dbc.Button("Generate Podcast", id="generate-podcast-btn", color="success", className="mt-3"),
173
- dcc.Loading(
174
- id="loading-podcast",
175
- type="default",
176
- children=[
177
- dbc.Progress(id="podcast-progress", value=0, className="my-3"),
178
- html.Div(id="audio-output", className="my-3"),
179
- ]
180
- ),
181
- dcc.Download(id="download-audio")
182
- ])
183
- ])
184
- ], width=5), # Adjust the width as needed
185
-
186
- # Right Column
187
  dbc.Col([
188
  dbc.Card([
189
  dbc.CardBody([
@@ -249,6 +221,32 @@ app.layout = dbc.Container([
249
  ])
250
  ])
251
  ], width=7), # Adjust the width as needed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  ]),
253
  ], fluid=True)
254
 
 
150
  # Get voice list (this should be run once at startup)
151
  voice_dict = asyncio.run(get_voice_list())
152
 
 
 
153
  # Layout
154
  app.layout = dbc.Container([
155
  html.H1("AI Podcast Generator", className="my-4"),
156
 
157
  dbc.Row([
158
+ # Left Column (now containing input elements)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  dbc.Col([
160
  dbc.Card([
161
  dbc.CardBody([
 
221
  ])
222
  ])
223
  ], width=7), # Adjust the width as needed
224
+
225
+ # Right Column (now containing script output and podcast generation)
226
+ dbc.Col([
227
+ dbc.Card([
228
+ dbc.CardBody([
229
+ dcc.Loading(
230
+ id="loading-script",
231
+ type="default",
232
+ children=[
233
+ dbc.Progress(id="script-progress", value=0, className="my-3"),
234
+ dbc.Textarea(id="script-output", rows=20, className="my-3"),
235
+ ]
236
+ ),
237
+ dbc.Button("Generate Podcast", id="generate-podcast-btn", color="success", className="mt-3"),
238
+ dcc.Loading(
239
+ id="loading-podcast",
240
+ type="default",
241
+ children=[
242
+ dbc.Progress(id="podcast-progress", value=0, className="my-3"),
243
+ html.Div(id="audio-output", className="my-3"),
244
+ ]
245
+ ),
246
+ dcc.Download(id="download-audio")
247
+ ])
248
+ ])
249
+ ], width=5), # Adjust the width as needed
250
  ]),
251
  ], fluid=True)
252