Wonderplex commited on
Commit
cad4701
·
unverified ·
1 Parent(s): 1f90e24

added check and displaying fix for clarification (#67)

Browse files
Files changed (1) hide show
  1. sotopia_space/chat.py +3 -0
sotopia_space/chat.py CHANGED
@@ -145,6 +145,9 @@ def create_user_goal(environment_dropdown):
145
  if "<strategy_hint>" in text:
146
  text = text.replace("<strategy_hint>", "\n\n")
147
  text = text.replace("</strategy_hint>", "\n")
 
 
 
148
  return gr.Textbox(label="User Agent Goal", lines=4, value=text)
149
 
150
  def create_bot_goal(environment_dropdown):
 
145
  if "<strategy_hint>" in text:
146
  text = text.replace("<strategy_hint>", "\n\n")
147
  text = text.replace("</strategy_hint>", "\n")
148
+ if "<clarification_hint>" in text:
149
+ text = text.replace("<clarification_hint>", "\n\n")
150
+ text = text.replace("</clarification_hint>", "\n")
151
  return gr.Textbox(label="User Agent Goal", lines=4, value=text)
152
 
153
  def create_bot_goal(environment_dropdown):