Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -282,8 +282,7 @@ def run_action(purpose, task, history, directory, action_name, action_input):
|
|
282 |
logging.error(f"Error in run_action: {e}")
|
283 |
return "MAIN", None, history, task
|
284 |
|
285 |
-
def run(purpose,history):
|
286 |
-
|
287 |
#print(purpose)
|
288 |
#print(hist)
|
289 |
task=None
|
@@ -616,8 +615,8 @@ def main():
|
|
616 |
|
617 |
# Connect components to the project explorer
|
618 |
explore_button.click(project_explorer, inputs=project_path, outputs=project_output)
|
619 |
-
|
620 |
-
demo.launch(show_api=True)
|
621 |
-
|
622 |
if __name__ == "__main__":
|
623 |
-
main()
|
|
|
|
|
|
|
|
282 |
logging.error(f"Error in run_action: {e}")
|
283 |
return "MAIN", None, history, task
|
284 |
|
285 |
+
def run(purpose,history):
|
|
|
286 |
#print(purpose)
|
287 |
#print(hist)
|
288 |
task=None
|
|
|
615 |
|
616 |
# Connect components to the project explorer
|
617 |
explore_button.click(project_explorer, inputs=project_path, outputs=project_output)
|
|
|
|
|
|
|
618 |
if __name__ == "__main__":
|
619 |
+
main() # Call main to initialize the Gradio interface
|
620 |
+
|
621 |
+
with gr.Blocks() as demo:
|
622 |
+
demo.launch(show_api=True)
|