Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ import spaces
|
|
15 |
import tempfile
|
16 |
import soundfile as sf
|
17 |
import librosa
|
|
|
18 |
|
19 |
# --- Configuration ---
|
20 |
HUGGINGFACE_MODEL_ID = "HuggingFaceH4/Qwen2.5-1.5B-Instruct-gkd"
|
@@ -40,6 +41,10 @@ whisper_processor = None
|
|
40 |
whisper_model = None
|
41 |
first_load = True
|
42 |
|
|
|
|
|
|
|
|
|
43 |
def load_readme():
|
44 |
with open("README.md", "r", encoding="utf-8") as f:
|
45 |
return f.read()
|
@@ -211,5 +216,7 @@ with gr.Blocks() as demo:
|
|
211 |
clear_btn.click(lambda: ([], "", None), None, [chatbot, text_input, audio_output])
|
212 |
#gr.Markdown("---")
|
213 |
gr.Markdown(load_readme())
|
|
|
|
|
214 |
|
215 |
demo.queue().launch()
|
|
|
15 |
import tempfile
|
16 |
import soundfile as sf
|
17 |
import librosa
|
18 |
+
import yaml
|
19 |
|
20 |
# --- Configuration ---
|
21 |
HUGGINGFACE_MODEL_ID = "HuggingFaceH4/Qwen2.5-1.5B-Instruct-gkd"
|
|
|
41 |
whisper_model = None
|
42 |
first_load = True
|
43 |
|
44 |
+
def render_modern_info():
|
45 |
+
config = load_config()
|
46 |
+
return generate_pretty_html(config)
|
47 |
+
|
48 |
def load_readme():
|
49 |
with open("README.md", "r", encoding="utf-8") as f:
|
50 |
return f.read()
|
|
|
216 |
clear_btn.click(lambda: ([], "", None), None, [chatbot, text_input, audio_output])
|
217 |
#gr.Markdown("---")
|
218 |
gr.Markdown(load_readme())
|
219 |
+
gr.Markdown("---")
|
220 |
+
gr.HTML(label="Modern Model Info")
|
221 |
|
222 |
demo.queue().launch()
|