From 97951f4c968edf21dda66e10d0af61a6f83f1f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Ho=CC=88nicke?= Date: Wed, 21 Jun 2023 15:27:46 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20fix:=20app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../options/generate/static_files/gateway/app_template.py | 1 + dev_gpt/options/generate/templates_user.py | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dev_gpt/options/generate/static_files/gateway/app_template.py b/dev_gpt/options/generate/static_files/gateway/app_template.py index 5da3b26..4982471 100644 --- a/dev_gpt/options/generate/static_files/gateway/app_template.py +++ b/dev_gpt/options/generate/static_files/gateway/app_template.py @@ -3,6 +3,7 @@ import os import streamlit as st from jina import Client, Document, DocumentArray +# def main(): set_page_config() diff --git a/dev_gpt/options/generate/templates_user.py b/dev_gpt/options/generate/templates_user.py index b6bb0f7..864ee9a 100644 --- a/dev_gpt/options/generate/templates_user.py +++ b/dev_gpt/options/generate/templates_user.py @@ -457,12 +457,8 @@ Most importantly: You must generate the complete app.py file using the following template_chain_of_thought = PromptTemplate.from_template( '''\ -1. write down an extensive list (5 words per item) of obvious and non-obvious observations about {file_name_purpose} that could need an adjustment. -2. Explain why. (5 words per item) -3. Think if all the changes are required -4. decide for the changes you want to make, but you are not allowed disregard the instructions in the previous message. -5. Write the whole content of {file_name_purpose} - even if you decided to change only a small thing or even nothing. -Note: Be very hesitant to change the code. Only make a change if you are sure that it is necessary. +1. Review each part of the playground and look for bugs like missing imports, wrong data types,... +2. Write the whole content of {file_name_purpose} - even if you decided to change only a small thing or even nothing. Note: Output only {file_name_purpose} ''' + '\n' + template_code_wrapping_string + '''