siddhartharyaai commited on
Commit
31ff046
ยท
verified ยท
1 Parent(s): 50757e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -157,9 +157,13 @@ def generate_podcast(file, url, video_url, research_topic_input, tone, length):
157
  return None, f"Error generating audio: {str(e)}"
158
 
159
  def main():
 
 
 
 
 
 
160
  # Enable "light or dark" theme via custom CSS
161
- # This won't 100% guarantee OS-level theme detection,
162
- # but attempts to align color-scheme with user preference.
163
  st.markdown(
164
  """
165
  <style>
@@ -186,14 +190,8 @@ def main():
186
  unsafe_allow_html=True
187
  )
188
 
189
- st.set_page_config(
190
- page_title="MyPod - AI-based Podcast Generator",
191
- layout="centered"
192
- )
193
-
194
  st.title("๐ŸŽ™ MyPod - AI-based Podcast Generator")
195
 
196
- # Add your instructions, including the new line
197
  st.markdown(
198
  "Welcome to **MyPod**, your go-to AI-powered podcast generator! ๐ŸŽ‰\n\n"
199
  "MyPod transforms your documents, webpages, YouTube videos, or research topics into a more human-sounding, conversational podcast.\n"
@@ -329,5 +327,6 @@ def main():
329
  )
330
  st.markdown(new_transcript)
331
 
 
332
  if __name__ == "__main__":
333
  main()
 
157
  return None, f"Error generating audio: {str(e)}"
158
 
159
  def main():
160
+ # Moved set_page_config to the very top of all Streamlit commands
161
+ st.set_page_config(
162
+ page_title="MyPod - AI-based Podcast Generator",
163
+ layout="centered"
164
+ )
165
+
166
  # Enable "light or dark" theme via custom CSS
 
 
167
  st.markdown(
168
  """
169
  <style>
 
190
  unsafe_allow_html=True
191
  )
192
 
 
 
 
 
 
193
  st.title("๐ŸŽ™ MyPod - AI-based Podcast Generator")
194
 
 
195
  st.markdown(
196
  "Welcome to **MyPod**, your go-to AI-powered podcast generator! ๐ŸŽ‰\n\n"
197
  "MyPod transforms your documents, webpages, YouTube videos, or research topics into a more human-sounding, conversational podcast.\n"
 
327
  )
328
  st.markdown(new_transcript)
329
 
330
+
331
  if __name__ == "__main__":
332
  main()