From 4f890e8d362c60bd526cb6ca39c9c61750c897f1 Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Thu, 20 Apr 2023 17:17:49 +0200 Subject: [PATCH] fix: turbo needs it clearer in playground --- src/options/generate/templates_user.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/options/generate/templates_user.py b/src/options/generate/templates_user.py index 5b377fa..c582459 100644 --- a/src/options/generate/templates_user.py +++ b/src/options/generate/templates_user.py @@ -305,8 +305,7 @@ print(response[0].text) # can also be blob in case of image/audio..., this shoul ``` Note that the response will always be in response[0].text You must provide the complete app.py file with the exact same syntax to wrap the code. -The playground (app.py) must always use the host on http://localhost:8080. -The playground (app.py) must not let the user configure the host on the UI. +The playground (app.py) must always use the host on http://localhost:8080 and must not let the user configure the host on the UI. The playground (app.py) must not import the executor. ''' ) @@ -319,5 +318,10 @@ Be very hesitant to change the code. Only make a change if you are sure that it Output only {file_name_purpose} Write the whole content of {file_name_purpose} - even if you decided to change only a small thing or even nothing. -''' + '\n' + template_code_wrapping_string +''' + '\n' + template_code_wrapping_string + ''' + +Remember: +The playground (app.py) must always use the host on http://localhost:8080 and must not let the user configure the host on the UI. +The playground (app.py) must not import the executor. +''' )