Spaces:
Running
Running
Kalyanbrata Maity
commited on
Commit
·
c5475da
1
Parent(s):
1fa996d
added ui config and folder structure
Browse files- app.py +0 -0
- src/__init__.py +0 -0
- src/langgraphagenticai/__init__.py +0 -0
- src/langgraphagenticai/graph/__init__.py +0 -0
- src/langgraphagenticai/llms/__init__.py +0 -0
- src/langgraphagenticai/llms/groq_llm.py +0 -0
- src/langgraphagenticai/main.py +0 -0
- src/langgraphagenticai/ui/__init__.py +0 -0
- src/langgraphagenticai/ui/streamlit/display_result.py +0 -0
- src/langgraphagenticai/ui/streamlit/load_ui.py +12 -0
- src/langgraphagenticai/ui/uiconfigfile.ini +5 -0
- src/langgraphagenticai/ui/uiconfigfile.py +20 -0
app.py
ADDED
File without changes
|
src/__init__.py
ADDED
File without changes
|
src/langgraphagenticai/__init__.py
ADDED
File without changes
|
src/langgraphagenticai/graph/__init__.py
ADDED
File without changes
|
src/langgraphagenticai/llms/__init__.py
ADDED
File without changes
|
src/langgraphagenticai/llms/groq_llm.py
ADDED
File without changes
|
src/langgraphagenticai/main.py
ADDED
File without changes
|
src/langgraphagenticai/ui/__init__.py
ADDED
File without changes
|
src/langgraphagenticai/ui/streamlit/display_result.py
ADDED
File without changes
|
src/langgraphagenticai/ui/streamlit/load_ui.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import os
|
3 |
+
from datetime import date
|
4 |
+
|
5 |
+
from langchain_core.messages import AIMessage, HumanMessage
|
6 |
+
from src.langgraphagenticai.ui.uiconfigfile import Config
|
7 |
+
|
8 |
+
|
9 |
+
class LoadStreamlitUI:
|
10 |
+
def __init__(self):
|
11 |
+
self.config = Config() # config
|
12 |
+
self.user_controls = {}
|
src/langgraphagenticai/ui/uiconfigfile.ini
ADDED
@@ -0,0 +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, gemma-7b-i
|
src/langgraphagenticai/ui/uiconfigfile.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from configparser import ConfigParser
|
2 |
+
|
3 |
+
class Config:
|
4 |
+
def __init__(self,
|
5 |
+
config_file="./src/langgraphagenticai/ui/uiconfigfile.ini"):
|
6 |
+
self.config = ConfigParser()
|
7 |
+
self.config.read(config_file)
|
8 |
+
|
9 |
+
|
10 |
+
def get_llm_options(self):
|
11 |
+
return self.config["DEFAULT"].get("LLM_OPTIONS").split(",")
|
12 |
+
|
13 |
+
def get_usecase_options(self):
|
14 |
+
return self.config["DEFAULT"].get("USECASE_OPTIONS").split(",")
|
15 |
+
|
16 |
+
def get_groq_model_options(self):
|
17 |
+
return self.config["DEFAULT"].get("GROQ_MODEL_OPTIONS").split(",")
|
18 |
+
|
19 |
+
def get_page_title(self):
|
20 |
+
return self.config["DEFAULT"].get("PAGE_TITLE").split(",")
|