Respair commited on
Commit
777ca80
·
verified ·
1 Parent(s): b1ade94

Update chat_app_remote.py

Browse files
Files changed (1) hide show
  1. chat_app_remote.py +13 -12
chat_app_remote.py CHANGED
@@ -125,8 +125,9 @@ def create_frontend_demo():
125
  gen_id_btn = gr.Button("Set Session ID")
126
  session_msg = gr.Markdown("")
127
  clear_btn = gr.Button("Clear Conversation")
128
-
129
  gr.Markdown("""
 
130
  This is a personal project I wanted to do for a while.
131
  Aira's voice was designed to be unique; it doesn't belong to any real person out there.
132
 
@@ -139,32 +140,32 @@ def create_frontend_demo():
139
  The majority of the latency depends on the HF's inference api.
140
  The language modelling part is not fine-tuned, it's an off-the-shelf one, please beware of that.
141
 
 
142
  1. Enter your Session ID above or leave blank for a new one
143
  2. Click 'Set Session ID' to confirm
144
  3. Use 'Clear Conversation' to reset the chat
145
  4. Your conversation history is saved based on your Session ID
146
 
147
  I'll try to keep this demo up for as long as I can afford.
148
-
149
-
 
 
150
  愛良の声は独特なものとして設計されました。実在する人物の声ではありません。
151
-
152
- 彼女のデザインは数年前に制作したVTuberプロジェクトがベースになっています。今回はそれほど力を入れていませんが(プロフィール画像の雑な筆致は見え見えですね)。
153
 
154
- セッションIDの使い方:
155
 
156
- 1. 上記にセッションIDを入力するか、新規の場合は空欄のままにしてください <br>
157
- 2.「Set Session ID」をクリックして確定 <br>
158
- 3. 「Clear Conversation」で会話をリセット <br>
159
- 4. 会話履歴はセッションIDに基づいて保存されます <br>
 
160
 
161
  レイテンシーの大部分はHugging Faceの推論APIに依存しています。
162
  言語モデルの部分は微調整されておらず、既製のものを使用しているのでご注意ください。
163
 
164
  できる限り長くこのデモを継続できるよう努めます。
165
-
166
  """)
167
-
168
  msg.submit(
169
  respond,
170
  inputs=[msg, chatbot, session_id_state],
 
125
  gen_id_btn = gr.Button("Set Session ID")
126
  session_msg = gr.Markdown("")
127
  clear_btn = gr.Button("Clear Conversation")
128
+
129
  gr.Markdown("""
130
+ ### English
131
  This is a personal project I wanted to do for a while.
132
  Aira's voice was designed to be unique; it doesn't belong to any real person out there.
133
 
 
140
  The majority of the latency depends on the HF's inference api.
141
  The language modelling part is not fine-tuned, it's an off-the-shelf one, please beware of that.
142
 
143
+ **Session Guide:**
144
  1. Enter your Session ID above or leave blank for a new one
145
  2. Click 'Set Session ID' to confirm
146
  3. Use 'Clear Conversation' to reset the chat
147
  4. Your conversation history is saved based on your Session ID
148
 
149
  I'll try to keep this demo up for as long as I can afford.
150
+
151
+ ---
152
+
153
+ ### 日本語
154
  愛良の声は独特なものとして設計されました。実在する人物の声ではありません。
 
 
155
 
156
+ 彼女のデザインは数年前に制作したVTuberプロジェクトがベースになっています。今回はそれほど力を入れていませんが(プロフィール画像の雑な筆致は見え見えですね)。
157
 
158
+ **セッションIDの使い方:**
159
+ 1. 上記にセッションIDを入力するか、新規の場合は空欄のままにしてください
160
+ 2.「Set Session ID」をクリックして確定
161
+ 3. 「Clear Conversation」で会話をリセット
162
+ 4. 会話履歴はセッションIDに基づいて保存されます
163
 
164
  レイテンシーの大部分はHugging Faceの推論APIに依存しています。
165
  言語モデルの部分は微調整されておらず、既製のものを使用しているのでご注意ください。
166
 
167
  できる限り長くこのデモを継続できるよう努めます。
 
168
  """)
 
169
  msg.submit(
170
  respond,
171
  inputs=[msg, chatbot, session_id_state],