Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dahaipeng committed Aug 12, 2024
1 parent 6e287e3 commit 44413fb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modelscope_agent/agents/data_science_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,6 @@ def _run(self, user_request, save: bool = True, **kwargs):
code = self._generate_code(code_counter, task,
user_request)
code = '%matplotlib inline \n' + code
# if self.streamlit:
# st.divider()
# st.write("We have generated the code for the current task")
# st.code(code, language='python')
code_execute_success, code_interpreter_resp = temp_code_interpreter.call(
params=json.dumps({'code': code}),
nb_mode=True,
Expand Down Expand Up @@ -720,8 +716,6 @@ def _run(self, user_request, save: bool = True, **kwargs):
)
task.code = code
task.result = code_interpreter_resp
else:
self.code_interpreter.nb.cells.pop()
code_counter += 1

# save the successful code in jupyter notebook
Expand Down

0 comments on commit 44413fb

Please sign in to comment.