Spaces:
Sleeping
Sleeping
Commit
·
442b800
1
Parent(s):
dfa5567
FInal changes3
Browse files
src/langgraph_agenticAI/UI/streamlitui/__pycache__/load_ui.cpython-311.pyc
CHANGED
Binary files a/src/langgraph_agenticAI/UI/streamlitui/__pycache__/load_ui.cpython-311.pyc and b/src/langgraph_agenticAI/UI/streamlitui/__pycache__/load_ui.cpython-311.pyc differ
|
|
src/langgraph_agenticAI/UI/streamlitui/load_ui.py
CHANGED
@@ -2,14 +2,15 @@ import streamlit as st
|
|
2 |
import os
|
3 |
from datetime import date
|
4 |
|
5 |
-
|
6 |
-
from src.langgraph_agenticAI.UI.uiconfigfile import Config
|
7 |
|
8 |
-
|
|
|
9 |
def __init__(self):
|
10 |
-
self.config=Config()
|
11 |
-
self.user_controls={}
|
12 |
-
|
13 |
def initialize_session(self):
|
14 |
return {
|
15 |
"current_step": "requirements",
|
@@ -20,18 +21,10 @@ class LoadStreamLitUI:
|
|
20 |
"review_feedback": "",
|
21 |
"decision": None
|
22 |
}
|
23 |
-
|
24 |
-
st.markdown('### Requirement Submission')
|
25 |
-
st. session_state.state["requirements"]= st.text_area(
|
26 |
-
"Enter your Requirements:",
|
27 |
-
height=200,
|
28 |
-
key="req-input"
|
29 |
-
)
|
30 |
-
if st.button("Submit requirements", key="req-input"):
|
31 |
-
st.session_state.state["current_step"] = " generate_User_stories" """
|
32 |
|
33 |
|
34 |
-
def load_streamlit_ui(self):
|
35 |
st.set_page_config(page_title= "🤖 " + self.config.get_page_title(), layout="wide")
|
36 |
st.header("🤖 " + self.config.get_page_title())
|
37 |
st.session_state.timeframe = ''
|
@@ -40,7 +33,7 @@ class LoadStreamLitUI:
|
|
40 |
|
41 |
|
42 |
|
43 |
-
with st.sidebar:
|
44 |
# Get options from config
|
45 |
llm_options = self.config.get_llm_options()
|
46 |
usecase_options = self.config.get_usecase_options()
|
@@ -74,8 +67,6 @@ class LoadStreamLitUI:
|
|
74 |
if "state" not in st.session_state:
|
75 |
st.session_state.state = self.initialize_session()
|
76 |
|
77 |
-
|
78 |
|
79 |
return self.user_controls
|
80 |
-
|
81 |
-
|
|
|
2 |
import os
|
3 |
from datetime import date
|
4 |
|
5 |
+
from langchain_core.messages import AIMessage,HumanMessage
|
6 |
+
from src.langgraph_agenticAI.UI.uiconfigfile import Config
|
7 |
|
8 |
+
|
9 |
+
class LoadStreamlitUI:
|
10 |
def __init__(self):
|
11 |
+
self.config = Config() # config
|
12 |
+
self.user_controls = {}
|
13 |
+
|
14 |
def initialize_session(self):
|
15 |
return {
|
16 |
"current_step": "requirements",
|
|
|
21 |
"review_feedback": "",
|
22 |
"decision": None
|
23 |
}
|
24 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
|
27 |
+
def load_streamlit_ui(self):
|
28 |
st.set_page_config(page_title= "🤖 " + self.config.get_page_title(), layout="wide")
|
29 |
st.header("🤖 " + self.config.get_page_title())
|
30 |
st.session_state.timeframe = ''
|
|
|
33 |
|
34 |
|
35 |
|
36 |
+
with st.sidebar:
|
37 |
# Get options from config
|
38 |
llm_options = self.config.get_llm_options()
|
39 |
usecase_options = self.config.get_usecase_options()
|
|
|
67 |
if "state" not in st.session_state:
|
68 |
st.session_state.state = self.initialize_session()
|
69 |
|
70 |
+
|
71 |
|
72 |
return self.user_controls
|
|
|
|
src/langgraph_agenticAI/UI/uiconfigfile.ini
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
[DEFAULT]
|
2 |
PAGE_TITLE = LangGraph: Build Stateful Agentic AI graph
|
3 |
LLM_OPTIONS= Groq
|
4 |
-
USECASE_OPTIONS= Basic Chatbot
|
5 |
GROQ_MODEL_OPTIONS= mixtral-8x7b-32768, llama3-8b-8192, llama-70b-8192, gemma-7b-i
|
|
|
1 |
[DEFAULT]
|
2 |
PAGE_TITLE = LangGraph: Build Stateful Agentic AI graph
|
3 |
LLM_OPTIONS= Groq
|
4 |
+
USECASE_OPTIONS= Basic Chatbot, Chatbot with Tool
|
5 |
GROQ_MODEL_OPTIONS= mixtral-8x7b-32768, llama3-8b-8192, llama-70b-8192, gemma-7b-i
|
src/langgraph_agenticAI/__pycache__/main.cpython-311.pyc
CHANGED
Binary files a/src/langgraph_agenticAI/__pycache__/main.cpython-311.pyc and b/src/langgraph_agenticAI/__pycache__/main.cpython-311.pyc differ
|
|
src/langgraph_agenticAI/main.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import json
|
3 |
-
from src.langgraph_agenticAI.UI.streamlitui.load_ui import
|
4 |
from src.langgraph_agenticAI.LLMs.GroqLLM import GroqLLM
|
5 |
from src.langgraph_agenticAI.Graphs.graph_builder import GraphBuilder
|
6 |
from src.langgraph_agenticAI.UI.streamlitui.display_result import DisplayResultStreamlit
|
@@ -15,7 +15,7 @@ def load_langgraph_agenticai_app():
|
|
15 |
"""
|
16 |
|
17 |
# Load UI
|
18 |
-
ui =
|
19 |
user_input = ui.load_streamlit_ui()
|
20 |
|
21 |
if not user_input:
|
|
|
1 |
import streamlit as st
|
2 |
import json
|
3 |
+
from src.langgraph_agenticAI.UI.streamlitui.load_ui import LoadStreamlitUI
|
4 |
from src.langgraph_agenticAI.LLMs.GroqLLM import GroqLLM
|
5 |
from src.langgraph_agenticAI.Graphs.graph_builder import GraphBuilder
|
6 |
from src.langgraph_agenticAI.UI.streamlitui.display_result import DisplayResultStreamlit
|
|
|
15 |
"""
|
16 |
|
17 |
# Load UI
|
18 |
+
ui = LoadStreamlitUI()
|
19 |
user_input = ui.load_streamlit_ui()
|
20 |
|
21 |
if not user_input:
|