Update app.py
Browse files
app.py
CHANGED
|
@@ -155,10 +155,18 @@ with gr.Blocks() as dialog_app:
|
|
| 155 |
with gr.Tab("Claude2 API xiaolv"):
|
| 156 |
gr.Markdown("""
|
| 157 |
## 需要传入的参数有:
|
| 158 |
-
1.cookie:intercom-device-id-lupk8zyo
|
| 159 |
2.user_id:对应 organization_uuid
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
with gr.Row():
|
| 164 |
with gr.Column(scale=0.4):
|
|
|
|
| 155 |
with gr.Tab("Claude2 API xiaolv"):
|
| 156 |
gr.Markdown("""
|
| 157 |
## 需要传入的参数有:
|
| 158 |
+
1.cookie:intercom-device-id-lupk8zyo=8888
|
| 159 |
2.user_id:对应 organization_uuid
|
| 160 |
+
## 特点:
|
| 161 |
+
1. 根据传入的cookie 和 user_id 自动创建一个新的聊天频道(conversation_uuid/channel_id);
|
| 162 |
+
2. 在新的聊天聊天频道进行对话;
|
| 163 |
+
3. 请求放回后,自动删除新的聊天频道,避免频繁调用导致页面太多记录。
|
| 164 |
+
4. 模型只能进行一次聊天,对于特定场景比较有用,防止模型记住历史数据,影响模型对实际数据的输出额判断。
|
| 165 |
""")
|
| 166 |
+
gr.HTML(
|
| 167 |
+
"""3.如果想多轮对话的话,可以参考以下这个地址:<a href="https://huggingface.co/spaces/xiaolv/claude2_xiaolv">claude2接口第1版</a>如果喜欢请给个 💖 。"""
|
| 168 |
+
)
|
| 169 |
+
|
| 170 |
|
| 171 |
with gr.Row():
|
| 172 |
with gr.Column(scale=0.4):
|