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,5 +50,5 @@ def response(message, history):
|
|
50 |
|
51 |
# 建立 Gradio 聊天界面
|
52 |
gr.ChatInterface(response,
|
53 |
-
title='
|
54 |
textbox=gr.Textbox(placeholder="請輸入與求職面試相關的問題")).launch(share=True)
|
|
|
34 |
chat.history = transform_history(history)
|
35 |
|
36 |
# 自訂 Prompt:限縮為與求職面試相關的回答
|
37 |
+
prompt = "你是大立光公司的招募小助理,名為大光。你負責協助求職者了解大立光積公司的面試流程及面試問題,只能回答與求職面試相關的問題,回答語氣需要熱情、溫柔且有耐心,回答問題時需要詳盡,且所有回答一律使用繁體中文。"
|
38 |
|
39 |
# 合併Prompt與使用者訊息
|
40 |
final_message = prompt + "\n" + message
|
|
|
50 |
|
51 |
# 建立 Gradio 聊天界面
|
52 |
gr.ChatInterface(response,
|
53 |
+
title='大立光公司面試小助手🤖✨',
|
54 |
textbox=gr.Textbox(placeholder="請輸入與求職面試相關的問題")).launch(share=True)
|