Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -419,6 +419,7 @@ if st.button("Dev Sandbox"):
|
|
419 |
context = execute_workflow(dev_sandbox_workflow, "Write a Python function to reverse a string.", context)
|
420 |
st.write(f"Workflow Output: {context}")
|
421 |
|
|
|
422 |
# --- Displaying Agent and Tool Information ---
|
423 |
st.subheader("Agent Pool")
|
424 |
for agent_name, agent in agent_pool.items():
|
@@ -444,32 +445,32 @@ for tool_class in [CodeGenerationTool, DataRetrievalTool, CodeExecutionTool, Cod
|
|
444 |
tool = tool_class()
|
445 |
st.write(f"**{tool.name}**")
|
446 |
st.write(f" Description: {tool.description}")
|
447 |
-
# --- Displaying Example Output ---
|
448 |
|
|
|
449 |
st.subheader("Example Output")
|
450 |
code_generation_tool = CodeGenerationTool()
|
451 |
-
st.write(f"""Code Generation Tool Output: {code_generation_tool.run({'language': 'python', 'code':
|
452 |
|
453 |
data_retrieval_tool = DataRetrievalTool()
|
454 |
st.write(f"""Data Retrieval Tool Output: {data_retrieval_tool.run({'source': 'https://example.com/data'})}""")
|
455 |
|
456 |
code_execution_tool = CodeExecutionTool()
|
457 |
-
st.write(f"""Code Execution Tool Output: {code_execution_tool.run({'code':
|
458 |
|
459 |
code_debugging_tool = CodeDebuggingTool()
|
460 |
-
st.write(f"""Code Debugging Tool Output: {code_debugging_tool.run({'code':
|
461 |
|
462 |
code_summarization_tool = CodeSummarizationTool()
|
463 |
-
st.write(f"""Code Summarization Tool Output: {code_summarization_tool.run({'code':
|
464 |
|
465 |
code_translation_tool = CodeTranslationTool()
|
466 |
-
st.write(f"""Code Translation Tool Output: {code_translation_tool.run({'code':
|
467 |
|
468 |
code_optimization_tool = CodeOptimizationTool()
|
469 |
-
st.write(f"""Code Optimization Tool Output: {code_optimization_tool.run({'code':
|
470 |
|
471 |
code_documentation_tool = CodeDocumentationTool()
|
472 |
-
st.write(f"""Code Documentation Tool Output: {code_documentation_tool.run({'code':
|
473 |
|
474 |
image_generation_tool = ImageGenerationTool()
|
475 |
st.write(f"""Image Generation Tool Output: {image_generation_tool.run({'description': 'A cat sitting on a couch'})}""")
|
|
|
419 |
context = execute_workflow(dev_sandbox_workflow, "Write a Python function to reverse a string.", context)
|
420 |
st.write(f"Workflow Output: {context}")
|
421 |
|
422 |
+
|
423 |
# --- Displaying Agent and Tool Information ---
|
424 |
st.subheader("Agent Pool")
|
425 |
for agent_name, agent in agent_pool.items():
|
|
|
445 |
tool = tool_class()
|
446 |
st.write(f"**{tool.name}**")
|
447 |
st.write(f" Description: {tool.description}")
|
|
|
448 |
|
449 |
+
# --- Displaying Example Output ---
|
450 |
st.subheader("Example Output")
|
451 |
code_generation_tool = CodeGenerationTool()
|
452 |
+
st.write(f"""Code Generation Tool Output: {code_generation_tool.run({'language': 'python', 'code': "print('Hello, World!')"})}""")
|
453 |
|
454 |
data_retrieval_tool = DataRetrievalTool()
|
455 |
st.write(f"""Data Retrieval Tool Output: {data_retrieval_tool.run({'source': 'https://example.com/data'})}""")
|
456 |
|
457 |
code_execution_tool = CodeExecutionTool()
|
458 |
+
st.write(f"""Code Execution Tool Output: {code_execution_tool.run({'code': "print('Hello, World!')"})}""")
|
459 |
|
460 |
code_debugging_tool = CodeDebuggingTool()
|
461 |
+
st.write(f"""Code Debugging Tool Output: {code_debugging_tool.run({'code': "print('Hello, World!')"})}""")
|
462 |
|
463 |
code_summarization_tool = CodeSummarizationTool()
|
464 |
+
st.write(f"""Code Summarization Tool Output: {code_summarization_tool.run({'code': "print('Hello, World!')"})}""")
|
465 |
|
466 |
code_translation_tool = CodeTranslationTool()
|
467 |
+
st.write(f"""Code Translation Tool Output: {code_translation_tool.run({'code': "print('Hello, World!')"})}""")
|
468 |
|
469 |
code_optimization_tool = CodeOptimizationTool()
|
470 |
+
st.write(f"""Code Optimization Tool Output: {code_optimization_tool.run({'code': "print('Hello, World!')"})}""")
|
471 |
|
472 |
code_documentation_tool = CodeDocumentationTool()
|
473 |
+
st.write(f"""Code Documentation Tool Output: {code_documentation_tool.run({'code': "print('Hello, World!')"})}""")
|
474 |
|
475 |
image_generation_tool = ImageGenerationTool()
|
476 |
st.write(f"""Image Generation Tool Output: {image_generation_tool.run({'description': 'A cat sitting on a couch'})}""")
|