Spaces:
Sleeping
Sleeping
acecalisto3
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -421,15 +421,15 @@ for agent_name, agent in agent_pool.items():
|
|
421 |
|
422 |
st.subheader("Workflows")
|
423 |
st.write("**App Build**")
|
424 |
-
st.write(f" Description: {AppBuildWorkflow().description}")
|
425 |
st.write("**Website Build**")
|
426 |
-
st.write(f" Description: {WebsiteBuildWorkflow().description}")
|
427 |
st.write("**Game Build**")
|
428 |
-
st.write(f" Description: {GameBuildWorkflow().description}")
|
429 |
st.write("**Plugin Build**")
|
430 |
-
st.write(f" Description: {PluginBuildWorkflow().description}")
|
431 |
st.write("**Dev Sandbox**")
|
432 |
-
st.write(f" Description: {DevSandboxWorkflow().description}")
|
433 |
|
434 |
# --- Displaying Tool Definitions ---
|
435 |
st.subheader("Tool Definitions")
|
@@ -441,34 +441,34 @@ for tool_class in [CodeGenerationTool, DataRetrievalTool, CodeExecutionTool, Cod
|
|
441 |
# --- Displaying Example Output ---
|
442 |
st.subheader("Example Output")
|
443 |
code_generation_tool = CodeGenerationTool()
|
444 |
-
st.write(f"Code Generation Tool Output: {code_generation_tool.run({'language': 'python', 'code': 'print(
|
445 |
|
446 |
data_retrieval_tool = DataRetrievalTool()
|
447 |
-
st.write(f"Data Retrieval Tool Output: {data_retrieval_tool.run({'source': 'https://example.com/data'})}")
|
448 |
|
449 |
code_execution_tool = CodeExecutionTool()
|
450 |
-
st.write(f"Code Execution Tool Output: {code_execution_tool.run({'code': 'print(
|
451 |
|
452 |
code_debugging_tool = CodeDebuggingTool()
|
453 |
-
st.write(f"Code Debugging Tool Output: {code_debugging_tool.run({'code': 'print(
|
454 |
|
455 |
code_summarization_tool = CodeSummarizationTool()
|
456 |
-
st.write(f"Code Summarization Tool Output: {code_summarization_tool.run({'code': 'print(
|
457 |
|
458 |
code_translation_tool = CodeTranslationTool()
|
459 |
-
st.write(f"Code Translation Tool Output: {code_translation_tool.run({'code': 'print(
|
460 |
|
461 |
code_optimization_tool = CodeOptimizationTool()
|
462 |
-
st.write(f"Code Optimization Tool Output: {code_optimization_tool.run({'code': 'print(
|
463 |
|
464 |
code_documentation_tool = CodeDocumentationTool()
|
465 |
-
st.write(f"Code Documentation Tool Output: {code_documentation_tool.run({'code': 'print(
|
466 |
|
467 |
image_generation_tool = ImageGenerationTool()
|
468 |
-
st.write(f"Image Generation Tool Output: {image_generation_tool.run({'description': 'A cat sitting on a couch'})}")
|
469 |
|
470 |
image_editing_tool = ImageEditingTool()
|
471 |
-
st.write(f"Image Editing Tool Output: {image_editing_tool.run({'image_path': 'path/to/image.jpg'})}")
|
472 |
|
473 |
image_analysis_tool = ImageAnalysisTool()
|
474 |
-
st.write(f"Image Analysis Tool Output: {image_analysis_tool.run({'image_path': 'path/to/image.jpg'})}")
|
|
|
421 |
|
422 |
st.subheader("Workflows")
|
423 |
st.write("**App Build**")
|
424 |
+
st.write(f""" Description: {AppBuildWorkflow().description}")
|
425 |
st.write("**Website Build**")
|
426 |
+
st.write(f""" Description: {WebsiteBuildWorkflow().description}""")
|
427 |
st.write("**Game Build**")
|
428 |
+
st.write(f""" Description: {GameBuildWorkflow().description}""")
|
429 |
st.write("**Plugin Build**")
|
430 |
+
st.write(f""" Description: {PluginBuildWorkflow().description}""")
|
431 |
st.write("**Dev Sandbox**")
|
432 |
+
st.write(f""" Description: {DevSandboxWorkflow().description}""")
|
433 |
|
434 |
# --- Displaying Tool Definitions ---
|
435 |
st.subheader("Tool Definitions")
|
|
|
441 |
# --- Displaying Example Output ---
|
442 |
st.subheader("Example Output")
|
443 |
code_generation_tool = CodeGenerationTool()
|
444 |
+
st.write(f"""Code Generation Tool Output: {code_generation_tool.run({'language': 'python', 'code': 'print('Hello, World!')'})}""")
|
445 |
|
446 |
data_retrieval_tool = DataRetrievalTool()
|
447 |
+
st.write(f"""Data Retrieval Tool Output: {data_retrieval_tool.run({'source': 'https://example.com/data'})}""")
|
448 |
|
449 |
code_execution_tool = CodeExecutionTool()
|
450 |
+
st.write(f"""Code Execution Tool Output: {code_execution_tool.run({'code': 'print('Hello, World!')'})}""")
|
451 |
|
452 |
code_debugging_tool = CodeDebuggingTool()
|
453 |
+
st.write(f"""Code Debugging Tool Output: {code_debugging_tool.run({'code': 'print('Hello, World!')'})}""")
|
454 |
|
455 |
code_summarization_tool = CodeSummarizationTool()
|
456 |
+
st.write(f"""Code Summarization Tool Output: {code_summarization_tool.run({'code': 'print('Hello, World!')'})}""")
|
457 |
|
458 |
code_translation_tool = CodeTranslationTool()
|
459 |
+
st.write(f"""Code Translation Tool Output: {code_translation_tool.run({'code': 'print('Hello, World!')'})}""")
|
460 |
|
461 |
code_optimization_tool = CodeOptimizationTool()
|
462 |
+
st.write(f"""Code Optimization Tool Output: {code_optimization_tool.run({'code': 'print('Hello, World!')'})}""")
|
463 |
|
464 |
code_documentation_tool = CodeDocumentationTool()
|
465 |
+
st.write(f"""Code Documentation Tool Output: {code_documentation_tool.run({'code': 'print('Hello, World!')'})}""")
|
466 |
|
467 |
image_generation_tool = ImageGenerationTool()
|
468 |
+
st.write(f"""Image Generation Tool Output: {image_generation_tool.run({'description': 'A cat sitting on a couch'})}""")
|
469 |
|
470 |
image_editing_tool = ImageEditingTool()
|
471 |
+
st.write(f"""Image Editing Tool Output: {image_editing_tool.run({'image_path': 'path/to/image.jpg'})}""")
|
472 |
|
473 |
image_analysis_tool = ImageAnalysisTool()
|
474 |
+
st.write(f"""Image Analysis Tool Output: {image_analysis_tool.run({'image_path': 'path/to/image.jpg'})}""")
|