siddhartharyaai commited on
Commit
97867cd
·
verified ·
1 Parent(s): b6aef61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -21
app.py CHANGED
@@ -230,7 +230,7 @@ def highlight_differences(original: str, edited: str) -> str:
230
 
231
  def main():
232
  st.set_page_config(
233
- page_title="MyPod v2: AI-based Podcast Generator",
234
  layout="centered"
235
  )
236
 
@@ -241,13 +241,9 @@ def main():
241
  .stFileUploader>div>div>div {
242
  transform: scale(0.9);
243
  }
244
- /* Style for "Generate Podcast" button */
245
  .generate-button > button {
246
- background-color: grey;
247
- color: white;
248
  width: 100%;
249
- padding: 0.5em;
250
- font-size: 1.2em;
251
  }
252
  /* Make radio buttons horizontal */
253
  div[role="radiogroup"] > label {
@@ -268,20 +264,31 @@ def main():
268
  with logo_col:
269
  st.image("logomypod.jpg", width=60)
270
  with title_col:
271
- st.markdown("## MyPod v2: AI powered Podcast Generator")
272
 
273
- # "How to use" as an expander
274
- with st.expander("How to use"):
 
 
 
 
 
 
 
 
275
  st.markdown("""
276
- Provide one source: PDF Files, Website URL, YouTube videos, or a Topic to Research.
277
- Choose the tone and the target duration.
278
- Add custom names and descriptions for the speakers if you wish.
279
- Add sponsored content as a separate break or blended into the script.
280
- Click 'Generate Podcast' to produce your podcast. Post generation you can edit the transcript and re-generate the audio with your edits if needed.
281
- Ask Follow-up Questions via text or voice and get immediate answers.
282
- """)
283
-
284
- # Retained text below "How to use"
 
 
 
285
  st.markdown("""
286
  **Research a Topic:** If it's too niche or specific, you might not get the desired outcome.
287
 
@@ -315,8 +322,8 @@ def main():
315
  user_specs = st.text_area("Any special instructions or prompts for the script? (Optional)", "")
316
  sponsor_content = st.text_area("Sponsored Content / Ad (Optional)", "")
317
  st.markdown("#### Sponsor Integration Style")
318
- sponsor_style = st.radio(
319
- "",
320
  ["Separate Break", "Blended"]
321
  )
322
 
@@ -514,7 +521,7 @@ def main():
514
  st.write("You have used all 5 Q&A opportunities.")
515
 
516
  # Footer
517
- st.markdown("<footer>©2025 MyPod</footer>", unsafe_allow_html=True)
518
 
519
  if __name__ == "__main__":
520
  main()
 
230
 
231
  def main():
232
  st.set_page_config(
233
+ page_title="MyPod v2: AI-Powered Podcast Magic",
234
  layout="centered"
235
  )
236
 
 
241
  .stFileUploader>div>div>div {
242
  transform: scale(0.9);
243
  }
244
+ /* Adjust "Generate Podcast" button to fit container width, using original styling for colors */
245
  .generate-button > button {
 
 
246
  width: 100%;
 
 
247
  }
248
  /* Make radio buttons horizontal */
249
  div[role="radiogroup"] > label {
 
264
  with logo_col:
265
  st.image("logomypod.jpg", width=60)
266
  with title_col:
267
+ st.markdown("## MyPod v2: AI-Powered Podcast Magic")
268
 
269
+ # Reinstated welcome section
270
+ st.markdown("""
271
+ Welcome to **MyPod**, your go-to AI-powered podcast generator! 🎉
272
+
273
+ MyPod transforms your documents, webpages, YouTube videos, or research topics into a more human-sounding, conversational podcast.
274
+ Select a tone and a duration range. The output script will be on-topic, concise, and respect your chosen length.
275
+ """)
276
+
277
+ # "How to Use" as an expander with enumerated list and larger text
278
+ with st.expander("How to Use"):
279
  st.markdown("""
280
+ <ol style="font-size:18px;">
281
+ <li>Provide one source: PDF Files, Website URL, YouTube videos, or a Topic to Research.</li>
282
+ <li>Choose the tone and the target duration.</li>
283
+ <li>Add custom names and descriptions for the speakers if you wish.</li>
284
+ <li>Add sponsored content as a separate break or blended into the script.</li>
285
+ <li>Click 'Generate Podcast' to produce your podcast.</li>
286
+ <li>Post generation you can edit the transcript and re-generate the audio with your edits if needed.</li>
287
+ <li>Ask Follow-up Questions via text or voice and get immediate answers.</li>
288
+ </ol>
289
+ """, unsafe_allow_html=True)
290
+
291
+ # Retained text below "How to Use"
292
  st.markdown("""
293
  **Research a Topic:** If it's too niche or specific, you might not get the desired outcome.
294
 
 
322
  user_specs = st.text_area("Any special instructions or prompts for the script? (Optional)", "")
323
  sponsor_content = st.text_area("Sponsored Content / Ad (Optional)", "")
324
  st.markdown("#### Sponsor Integration Style")
325
+ sponsor_style = st.selectbox(
326
+ "Sponsor Integration Style",
327
  ["Separate Break", "Blended"]
328
  )
329
 
 
521
  st.write("You have used all 5 Q&A opportunities.")
522
 
523
  # Footer
524
+ st.markdown("<footer>© MyPod 2025</footer>", unsafe_allow_html=True)
525
 
526
  if __name__ == "__main__":
527
  main()