Update app.py
Browse files
app.py
CHANGED
@@ -113,10 +113,11 @@ def handle_post_success_actions(generated_function):
|
|
113 |
return generated_function
|
114 |
|
115 |
def main(initial_prompt, run_mode, num_runs, console_output, command_input):
|
116 |
-
console_output = ""
|
117 |
|
118 |
while True:
|
119 |
console_output += "\nMenu:\n1. Generate and test a function π¨\n2. Exit π\n"
|
|
|
120 |
choice = command_input
|
121 |
command_input = ""
|
122 |
|
@@ -159,6 +160,9 @@ def main(initial_prompt, run_mode, num_runs, console_output, command_input):
|
|
159 |
|
160 |
yield console_output
|
161 |
|
|
|
|
|
|
|
162 |
with gr.Blocks() as demo:
|
163 |
gr.Markdown("# LLM-Powered Function Generator")
|
164 |
|
|
|
113 |
return generated_function
|
114 |
|
115 |
def main(initial_prompt, run_mode, num_runs, console_output, command_input):
|
116 |
+
console_output = "Enter the initial prompt for the development process: " + initial_prompt + "\n"
|
117 |
|
118 |
while True:
|
119 |
console_output += "\nMenu:\n1. Generate and test a function π¨\n2. Exit π\n"
|
120 |
+
yield console_output
|
121 |
choice = command_input
|
122 |
command_input = ""
|
123 |
|
|
|
160 |
|
161 |
yield console_output
|
162 |
|
163 |
+
|
164 |
+
yield console_output
|
165 |
+
|
166 |
with gr.Blocks() as demo:
|
167 |
gr.Markdown("# LLM-Powered Function Generator")
|
168 |
|