Update app.py
Browse files
app.py
CHANGED
|
@@ -72,11 +72,12 @@ def predict(message, history):
|
|
| 72 |
# --- 创建并启动Gradio界面 ---
|
| 73 |
demo = gr.ChatInterface(
|
| 74 |
fn=predict,
|
| 75 |
-
title="
|
| 76 |
description=f"直接在Space中运行 {MODEL_ID} 模型进行流式对话。CPU推理可能较慢,请耐心等待。",
|
| 77 |
examples=[["你好"], ["请用python写一个快速排序算法"], ["给我讲个笑话吧"]],
|
| 78 |
cache_examples=False,
|
| 79 |
)
|
| 80 |
|
| 81 |
if __name__ == "__main__":
|
| 82 |
-
demo.launch(
|
|
|
|
|
|
| 72 |
# --- 创建并启动Gradio界面 ---
|
| 73 |
demo = gr.ChatInterface(
|
| 74 |
fn=predict,
|
| 75 |
+
title="老师傅",
|
| 76 |
description=f"直接在Space中运行 {MODEL_ID} 模型进行流式对话。CPU推理可能较慢,请耐心等待。",
|
| 77 |
examples=[["你好"], ["请用python写一个快速排序算法"], ["给我讲个笑话吧"]],
|
| 78 |
cache_examples=False,
|
| 79 |
)
|
| 80 |
|
| 81 |
if __name__ == "__main__":
|
| 82 |
+
demo.launch(# 这是修改后的代码
|
| 83 |
+
demo.launch(share=True))
|