youngtsai commited on
Commit
8bcb25f
1 Parent(s): f066645

最後,在你回答的開頭標註【蘇格拉底助教】

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -639,6 +639,8 @@ def respond(user_message, df_string_output, chat_history, socratic_mode=False):
639
  或者你可以問學生一些問題,幫助學生更好的理解資料
640
 
641
  如果學生的問題與資料文本無關,請告訴學生你無法回答超出範圍的問題
 
 
642
  """
643
  else:
644
  sys_content = f"""
@@ -742,8 +744,8 @@ with gr.Blocks() as demo:
742
  file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
743
  youtube_link = gr.Textbox(label="Enter YouTube Link")
744
  web_link = gr.Textbox(label="Enter Web Page Link", visible=False)
745
- socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=False)
746
  chatbot = gr.Chatbot()
 
747
  msg = gr.Textbox(label="Message")
748
  send_button = gr.Button("Send")
749
 
 
639
  或者你可以問學生一些問題,幫助學生更好的理解資料
640
 
641
  如果學生的問題與資料文本無關,請告訴學生你無法回答超出範圍的問題
642
+
643
+ 最後,在你回答的開頭標註【蘇格拉底助教】
644
  """
645
  else:
646
  sys_content = f"""
 
744
  file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
745
  youtube_link = gr.Textbox(label="Enter YouTube Link")
746
  web_link = gr.Textbox(label="Enter Web Page Link", visible=False)
 
747
  chatbot = gr.Chatbot()
748
+ socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=False)
749
  msg = gr.Textbox(label="Message")
750
  send_button = gr.Button("Send")
751