lgaleana commited on
Commit
c44e323
1 Parent(s): b2c28f8
Files changed (1) hide show
  1. components.py +1 -2
components.py CHANGED
@@ -197,7 +197,7 @@ class CodeTask(TaskComponent):
197
  {
198
  "role": "user",
199
  "content": f"""
200
- The following text should have a python function with some imports that might need to be installed:
201
  {raw_prompt_output}
202
 
203
  Extract all the python packages that need to be installed with pip, nothing else.
@@ -221,7 +221,6 @@ class CodeTask(TaskComponent):
221
  except Exception as e:
222
  import traceback
223
 
224
- print(str(e))
225
  print(traceback.format_exc())
226
  error_message = gr.HighlightedText.update(
227
  value=[(str(e), "ERROR")], visible=True
 
197
  {
198
  "role": "user",
199
  "content": f"""
200
+ The following text has a python function with some imports that might need to be installed:
201
  {raw_prompt_output}
202
 
203
  Extract all the python packages that need to be installed with pip, nothing else.
 
221
  except Exception as e:
222
  import traceback
223
 
 
224
  print(traceback.format_exc())
225
  error_message = gr.HighlightedText.update(
226
  value=[(str(e), "ERROR")], visible=True