Spaces:
Runtime error
Runtime error
finshed
Browse files- src/main.py +25 -0
src/main.py
CHANGED
|
@@ -3,6 +3,31 @@ import streamlit as st
|
|
| 3 |
|
| 4 |
st.title("Ai Workflow Analyzer")
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
|
|
|
|
| 3 |
|
| 4 |
st.title("Ai Workflow Analyzer")
|
| 5 |
|
| 6 |
+
st.write("Type your workflow to analyze its structure and components.")
|
| 7 |
+
|
| 8 |
+
st.text_area("Workflow Input", height=200, key="workflow_input")
|
| 9 |
+
|
| 10 |
+
if st.button("Analyze Workflow"):
|
| 11 |
+
workflow_input = st.session_state.workflow_input
|
| 12 |
+
if workflow_input:
|
| 13 |
+
analysis_result = analyze_workflow(workflow_input)
|
| 14 |
+
st.subheader("Analysis Result")
|
| 15 |
+
st.write(analysis_result)
|
| 16 |
+
|
| 17 |
+
st.download_button(
|
| 18 |
+
label="Download Analysis Result",
|
| 19 |
+
data=analysis_result,
|
| 20 |
+
file_name="analysis_result.md",
|
| 21 |
+
mime="text/plain"
|
| 22 |
+
)
|
| 23 |
+
else:
|
| 24 |
+
st.warning("Please enter a workflow to analyze.")
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
st.write("© 2026 Ai Workflow Analyzer. All rights reserved.")
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
|
| 32 |
|
| 33 |
|