Initial commit
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import streamlit as st
|
||||
import time
|
||||
from backend import BDAgent
|
||||
from backend import orquestrador
|
||||
import boto3
|
||||
from boto3.dynamodb.conditions import Key
|
||||
|
||||
@@ -12,7 +12,7 @@ st.set_page_config(
|
||||
)
|
||||
|
||||
session = boto3.Session()
|
||||
dynamodb = boto3.resource("dynamodb", region_name="us-east-1")
|
||||
dynamodb = boto3.resource("dynamodb", region_name=orquestrador.REGION)
|
||||
|
||||
def list_bases():
|
||||
table = dynamodb.Table("poc_dnx_monthly_summary")
|
||||
@@ -74,7 +74,7 @@ if prompt := st.chat_input("Type your message here..."):
|
||||
|
||||
# Simulate streaming response (replace with actual API call)
|
||||
|
||||
result = BDAgent.main(prompt,str(st.session_state.messages),selected_value,base)
|
||||
result = orquestrador.main(prompt,str(st.session_state.messages),selected_value,base)
|
||||
full_response = result["response"]
|
||||
|
||||
# Simulate typing effect
|
||||
|
||||
Reference in New Issue
Block a user