Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def load_model_processor(model_path):
|
|
| 31 |
model_path1 = "SeaLLMs/SeaLLMs-Audio-7B"
|
| 32 |
model1, processor1 = load_model_processor(model_path1)
|
| 33 |
|
| 34 |
-
def response_to_audio(audio_url, text, model=None, processor=None, temperature = 0
|
| 35 |
if text == None:
|
| 36 |
conversation = [
|
| 37 |
{"role": "user", "content": [
|
|
@@ -88,7 +88,7 @@ with gr.Blocks() as demo:
|
|
| 88 |
# gr.Markdown(f"Evaluate {model_path1}")
|
| 89 |
# gr.Markdown("""<p align="center"><img src="images/seal_logo.png" style="height: 80px"/><p>""")
|
| 90 |
# gr.Image("images/seal_logo.png", elem_id="seal_logo", show_label=False,height=80,show_fullscreen_button=False)
|
| 91 |
-
gr.
|
| 92 |
gr.Markdown(
|
| 93 |
"""\
|
| 94 |
<center><font size=4>This WebUI is based on SeaLLMs-Audio-7B-Chat, developed by Alibaba DAMO Academy.<br>
|
|
@@ -99,7 +99,7 @@ with gr.Blocks() as demo:
|
|
| 99 |
gr.Markdown(
|
| 100 |
"""<center><font size=4>
|
| 101 |
<a href="https://huggingface.co/SeaLLMs/SeaLLMs-v3-7B-Chat">[Website]</a>
|
| 102 |
-
<a href="https://huggingface.co/SeaLLMs/SeaLLMs-
|
| 103 |
<a href="https://github.com/liuchaoqun/SeaLLMs-Audio">[Github]</a>
|
| 104 |
</center>""",
|
| 105 |
)
|
|
|
|
| 31 |
model_path1 = "SeaLLMs/SeaLLMs-Audio-7B"
|
| 32 |
model1, processor1 = load_model_processor(model_path1)
|
| 33 |
|
| 34 |
+
def response_to_audio(audio_url, text, model=None, processor=None, temperature = 0,repetition_penalty=1.1, top_p = 0.9,max_new_tokens = 2048):
|
| 35 |
if text == None:
|
| 36 |
conversation = [
|
| 37 |
{"role": "user", "content": [
|
|
|
|
| 88 |
# gr.Markdown(f"Evaluate {model_path1}")
|
| 89 |
# gr.Markdown("""<p align="center"><img src="images/seal_logo.png" style="height: 80px"/><p>""")
|
| 90 |
# gr.Image("images/seal_logo.png", elem_id="seal_logo", show_label=False,height=80,show_fullscreen_button=False)
|
| 91 |
+
gr.HTML("""<h1 align="center" id="space-title">SeaLLMs-Audio-Demo</h1>""")
|
| 92 |
gr.Markdown(
|
| 93 |
"""\
|
| 94 |
<center><font size=4>This WebUI is based on SeaLLMs-Audio-7B-Chat, developed by Alibaba DAMO Academy.<br>
|
|
|
|
| 99 |
gr.Markdown(
|
| 100 |
"""<center><font size=4>
|
| 101 |
<a href="https://huggingface.co/SeaLLMs/SeaLLMs-v3-7B-Chat">[Website]</a>
|
| 102 |
+
<a href="https://huggingface.co/SeaLLMs/SeaLLMs-Audio-7B">[Model🤗]</a>
|
| 103 |
<a href="https://github.com/liuchaoqun/SeaLLMs-Audio">[Github]</a>
|
| 104 |
</center>""",
|
| 105 |
)
|