Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,9 +70,15 @@ def respond(
|
|
| 70 |
except Exception as e:
|
| 71 |
raise gr.Error(f"发生错误: {str(e)}")
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
demo = gr.ChatInterface(respond,
|
| 75 |
-
title="Hunyuan-Large"
|
|
|
|
| 76 |
)
|
| 77 |
|
| 78 |
if __name__ == "__main__":
|
|
|
|
| 70 |
except Exception as e:
|
| 71 |
raise gr.Error(f"发生错误: {str(e)}")
|
| 72 |
|
| 73 |
+
example_prompts = [
|
| 74 |
+
["写一篇关于青春的五言绝句"],
|
| 75 |
+
["How is the Democratic Party different from the Republican Party?"],
|
| 76 |
+
["一枚反面朝上的硬币,被翻转了15下后,它的上面是正面,这个说法正确吗?"]
|
| 77 |
+
]
|
| 78 |
|
| 79 |
demo = gr.ChatInterface(respond,
|
| 80 |
+
title="Hunyuan-Large",
|
| 81 |
+
examples=example_prompts
|
| 82 |
)
|
| 83 |
|
| 84 |
if __name__ == "__main__":
|