lvwerra HF Staff commited on
Commit
9aa49ac
·
1 Parent(s): f94eede

smol fixes

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -38,6 +38,7 @@ with open(TMP_DIR+"jupyter-agent.ipynb", 'w', encoding='utf-8') as f:
38
  with open("ds-system-prompt.txt", "r") as f:
39
  DEFAULT_SYSTEM_PROMPT = f.read()
40
  DEFAULT_SYSTEM_PROMPT = """You are a coding agent with access to a Jupyter Kernel. \
 
41
  The following files are available (if any):
42
  {}
43
  """
@@ -73,7 +74,7 @@ def execute_jupyter_agent(
73
  # Initialize message_history if it doesn't exist
74
  if len(message_history) == 0:
75
  if files is None:
76
- system_message = sytem_prompt.format("None")
77
  else:
78
  sytem_prompt.format("- " + "\n- ".join(filenames))
79
 
@@ -127,8 +128,8 @@ with gr.Blocks() as demo:
127
  html_output = gr.HTML(value=JupyterNotebook().render())
128
 
129
  user_input = gr.Textbox(
130
- value="Write code to multiply three numbers: 10048, 32, 19", lines=3, label="User input"
131
- #value="Solve the Lotka-Volterra equation and plot the results. Do it step by step and explain what you are doing and in the end make a super nice and clean plot.", lines=3, label="User input"
132
  )
133
 
134
  with gr.Row():
 
38
  with open("ds-system-prompt.txt", "r") as f:
39
  DEFAULT_SYSTEM_PROMPT = f.read()
40
  DEFAULT_SYSTEM_PROMPT = """You are a coding agent with access to a Jupyter Kernel. \
41
+ When possible break down tasks step-by-step. \
42
  The following files are available (if any):
43
  {}
44
  """
 
74
  # Initialize message_history if it doesn't exist
75
  if len(message_history) == 0:
76
  if files is None:
77
+ system_message = sytem_prompt.format("- None")
78
  else:
79
  sytem_prompt.format("- " + "\n- ".join(filenames))
80
 
 
128
  html_output = gr.HTML(value=JupyterNotebook().render())
129
 
130
  user_input = gr.Textbox(
131
+ #value="Write code to multiply three numbers: 10048, 32, 19", lines=3, label="User input"
132
+ value="Solve the Lotka-Volterra equation and plot the results. Do it step by step and explain what you are doing and in the end make a super nice and clean plot.", lines=3, label="User input"
133
  )
134
 
135
  with gr.Row():