Spaces:
Running
Running
martin
commited on
Commit
·
1a59bbb
1
Parent(s):
f69f7c1
fix layout and start cmd
Browse files- Dockerfile +1 -2
- app.py +13 -15
Dockerfile
CHANGED
@@ -43,5 +43,4 @@ COPY --chown=user . .
|
|
43 |
RUN pip install gradio
|
44 |
RUN pip install openai
|
45 |
RUN chmod +x start_app.sh
|
46 |
-
|
47 |
-
CMD ["./start_app.sh", "$HF_MODEL_PATH"]
|
|
|
43 |
RUN pip install gradio
|
44 |
RUN pip install openai
|
45 |
RUN chmod +x start_app.sh
|
46 |
+
CMD ["./start_app.sh", "/tmp/hf_model"]
|
|
app.py
CHANGED
@@ -144,21 +144,19 @@ def _launch_demo(args, tts_model):
|
|
144 |
# 保存 chat 历史,不需要每次再重新拼格式
|
145 |
history = gr.State([])
|
146 |
gr.Markdown("""<center><font size=8>Step Audio Chat</center>""")
|
147 |
-
|
148 |
-
with
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
show_fullscreen_button=False,
|
161 |
-
)
|
162 |
with gr.Accordion(
|
163 |
label="The performance of English prompts is not as stable as that of Chinese prompts. You can click here to change sys prompt.", open=False
|
164 |
):
|
|
|
144 |
# 保存 chat 历史,不需要每次再重新拼格式
|
145 |
history = gr.State([])
|
146 |
gr.Markdown("""<center><font size=8>Step Audio Chat</center>""")
|
147 |
+
gr.Markdown(
|
148 |
+
"""<font size=4>This preview demonstrates core functionalities. To unlock the cormplete real-time voice conversation system with end-to-end encryption and advanced features, download the [Yuewen APP](https://m.yuewen.cn/call-app) with the link or via QR Code.</font>"""
|
149 |
+
)
|
150 |
+
with gr.Accordion(
|
151 |
+
label="Click to view the QR code ", open=False
|
152 |
+
):
|
153 |
+
gr.Image(
|
154 |
+
value="assets/yuewen.jpeg",
|
155 |
+
interactive=False,
|
156 |
+
show_label=False,
|
157 |
+
show_download_button=False,
|
158 |
+
show_fullscreen_button=False,
|
159 |
+
)
|
|
|
|
|
160 |
with gr.Accordion(
|
161 |
label="The performance of English prompts is not as stable as that of Chinese prompts. You can click here to change sys prompt.", open=False
|
162 |
):
|