Spaces:
Running
on
T4
Running
on
T4
gabrielchua
commited on
Commit
β’
44f832c
1
Parent(s):
fc18aee
update UI
Browse files- app.py +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.
|
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 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
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 = {
|