Skip to content

Commit

Permalink
fix21
Browse files Browse the repository at this point in the history
  • Loading branch information
Dainius committed May 29, 2024
1 parent eb4f7aa commit 60b4414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GUI/back-end/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def process():

api_answer = answer + '\n\n'
if '```' in api_answer and '```python' in api_answer:
execute = api_answer[api_answer.find('```python') + 9:api_answer.rfind('```')]
execute = 'from data_collection import *\n\n' + api_answer[api_answer.find('```python') + 9:api_answer.rfind('```')]
old_stdout = sys.stdout
redirected_output = sys.stdout = StringIO()
exec(execute)
Expand Down

0 comments on commit 60b4414

Please sign in to comment.