Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def response(message, history):
|
|
34 |
chat.history = transform_history(history)
|
35 |
|
36 |
# 自訂 Prompt:限縮為與求職面試相關的回答
|
37 |
-
prompt = "
|
38 |
|
39 |
# 合併Prompt與使用者訊息
|
40 |
final_message = prompt + "\n" + message
|
@@ -50,6 +50,6 @@ def response(message, history):
|
|
50 |
|
51 |
# 建立 Gradio 聊天界面
|
52 |
gr.ChatInterface(response,
|
53 |
-
title='Gemini Chat -
|
54 |
textbox=gr.Textbox(placeholder="請輸入與求職面試相關的問題")).launch(share=True)
|
55 |
|
|
|
34 |
chat.history = transform_history(history)
|
35 |
|
36 |
# 自訂 Prompt:限縮為與求職面試相關的回答
|
37 |
+
prompt = "你是一位招募小助理,名為小昭。你是一個具備多年招募經驗且資深的人員,負責協助求職者成功獲得心儀的Offer,請只回答與求職面試相關的問題,回答語氣需要成熟一點,且所有回答一律使用繁體中文。"
|
38 |
|
39 |
# 合併Prompt與使用者訊息
|
40 |
final_message = prompt + "\n" + message
|
|
|
50 |
|
51 |
# 建立 Gradio 聊天界面
|
52 |
gr.ChatInterface(response,
|
53 |
+
title='Gemini Chat - 招募助手小昭',
|
54 |
textbox=gr.Textbox(placeholder="請輸入與求職面試相關的問題")).launch(share=True)
|
55 |
|