gabrielchua commited on
Commit
44f832c
β€’
1 Parent(s): fc18aee
Files changed (2) hide show
  1. app.py +2 -2
  2. constants.py +10 -12
app.py CHANGED
@@ -217,11 +217,11 @@ demo = gr.Interface(
217
  ],
218
  allow_flagging=UI_ALLOW_FLAGGING,
219
  api_name=UI_API_NAME,
220
- theme=gr.themes.Soft(),
221
  concurrency_limit=UI_CONCURRENCY_LIMIT,
222
  examples=UI_EXAMPLES,
223
  cache_examples=UI_CACHE_EXAMPLES,
224
  )
225
 
226
  if __name__ == "__main__":
227
- demo.launch(show_api=UI_SHOW_API)
 
217
  ],
218
  allow_flagging=UI_ALLOW_FLAGGING,
219
  api_name=UI_API_NAME,
220
+ theme=gr.themes.Ocean(),
221
  concurrency_limit=UI_CONCURRENCY_LIMIT,
222
  examples=UI_EXAMPLES,
223
  cache_examples=UI_CACHE_EXAMPLES,
224
  )
225
 
226
  if __name__ == "__main__":
227
+ demo.launch(show_api=UI_SHOW_API)
constants.py CHANGED
@@ -7,7 +7,7 @@ import os
7
  from pathlib import Path
8
 
9
  # Key constants
10
- APP_TITLE = "Open NotebookLM"
11
  CHARACTER_LIMIT = 100_000
12
 
13
  # Gradio-related constants
@@ -77,17 +77,15 @@ JINA_RETRY_DELAY = 5 # in seconds
77
 
78
  # UI-related constants
79
  UI_DESCRIPTION = """
80
- <table style="border-collapse: collapse; border: none; padding: 20px;">
81
- <tr style="border: none;">
82
- <td style="border: none; vertical-align: top; padding-right: 30px; padding-left: 30px;">
83
- <img src="https://raw.githubusercontent.com/gabrielchua/daily-ai-papers/main/_includes/icon.png" alt="Open NotebookLM" width="120" style="margin-bottom: 10px;">
84
- </td>
85
- <td style="border: none; vertical-align: top; padding: 10px;">
86
- <p style="margin-bottom: 15px;">Convert your PDFs into podcasts with open-source AI models (<a href="https://huggingface.co/meta-llama/Llama-3.1-405B">Llama 3.1 405B</a> via <a href="https://fireworks.ai/">Fireworks AI</a>, <a href="https://huggingface.co/myshell-ai/MeloTTS-English">MeloTTS</a>, <a href="https://huggingface.co/suno/bark">Bark</a>).</p>
87
- <p style="margin-top: 15px;">Note: Only the text content of the PDFs will be processed. Images and tables are not included. The total content should be no more than 100,000 characters due to the context length of Llama 3.1 405B.</p>
88
- </td>
89
- </tr>
90
- </table>
91
  """
92
  UI_AVAILABLE_LANGUAGES = list(set(SUNO_LANGUAGE_MAPPING.keys()))
93
  UI_INPUTS = {
 
7
  from pathlib import Path
8
 
9
  # Key constants
10
+ APP_TITLE = "Open NotebookLM πŸŽ™οΈ"
11
  CHARACTER_LIMIT = 100_000
12
 
13
  # Gradio-related constants
 
77
 
78
  # UI-related constants
79
  UI_DESCRIPTION = """
80
+ Generate Podcasts from PDFs using open-source AI.
81
+
82
+ Built with:
83
+ - [Llama 3.1 405B πŸ¦™](https://huggingface.co/meta-llama/Llama-3.1-405B) via [Fireworks AI πŸŽ†](https://fireworks.ai/)
84
+ - [MeloTTS 🐚](https://huggingface.co/myshell-ai/MeloTTS-English)
85
+ - [Bark 🐢](https://huggingface.co/suno/bark)
86
+ - [Jina Reader πŸ”](https://jina.ai/reader/)
87
+
88
+ **Note:** Only the text is processed (100k character limits).
 
 
89
  """
90
  UI_AVAILABLE_LANGUAGES = list(set(SUNO_LANGUAGE_MAPPING.keys()))
91
  UI_INPUTS = {