martin commited on
Commit
1a59bbb
·
1 Parent(s): f69f7c1

fix layout and start cmd

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -2
  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
- ENV HF_MODEL_PATH="/tmp/hf_model"
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
- with gr.Row():
148
- with gr.Column(scale=3):
149
- gr.Markdown(
150
- """<font size=4>This preview demonstrates core functionalities. To unlock the complete real-time voice conversation system with end-to-end encryption and advanced features, download the Yuewen APP.</font>"""
151
- )
152
- with gr.Column(scale=1):
153
- gr.Image(
154
- height=180,
155
- width=180,
156
- value="assets/yuewen.jpeg",
157
- interactive=False,
158
- show_label=False,
159
- show_download_button=False,
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
  ):