AIEnthusiast369 commited on
Commit
5d56900
·
1 Parent(s): bf64d19

clean up and comments

Browse files
Files changed (2) hide show
  1. streamlit_app/main.py +1 -8
  2. streamlit_app/util.py +7 -0
streamlit_app/main.py CHANGED
@@ -1,18 +1,11 @@
1
  import streamlit as st
2
- # from pathlib import Path
3
- # import json
4
- # import os
5
- # from dotenv import load_dotenv
6
- # from streamlit_app.graph import workflow
7
  from stt_tts.models import STTModel, TTSModel
8
- # from graph.workflow import create_workflow
9
  from config import load_config
10
  # from langchain_google_genai import ChatGoogleGenerativeAI
11
  # from langchain_mistralai.chat_models import ChatMistralAI
12
  from langchain_groq import ChatGroq
13
  from config import Config
14
- # from streamlit_chat_widget import chat_input_widget
15
- # from streamlit_extras.bottom_container import bottom
16
 
17
  def has_api_key(config: Config) -> bool:
18
  """
 
1
  import streamlit as st
 
 
 
 
 
2
  from stt_tts.models import STTModel, TTSModel
 
3
  from config import load_config
4
  # from langchain_google_genai import ChatGoogleGenerativeAI
5
  # from langchain_mistralai.chat_models import ChatMistralAI
6
  from langchain_groq import ChatGroq
7
  from config import Config
8
+
 
9
 
10
  def has_api_key(config: Config) -> bool:
11
  """
streamlit_app/util.py CHANGED
@@ -4,6 +4,13 @@ from streamlit_dynamic_filters import DynamicFilters
4
 
5
  # Function to create and display filtered dataframe
6
  def display_filtered_dataframe(df: pd.DataFrame, title: str, filters: list[str]):
 
 
 
 
 
 
 
7
  # Initialize DynamicFilters
8
  dynamic_filters = DynamicFilters(df, filters=filters)
9
 
 
4
 
5
  # Function to create and display filtered dataframe
6
  def display_filtered_dataframe(df: pd.DataFrame, title: str, filters: list[str]):
7
+ """
8
+ Display a filtered dataframe with dynamic filters.
9
+ Args:
10
+ df: The dataframe to display.
11
+ title: The title of the dataframe.
12
+ filters: The filters to apply to the dataframe.
13
+ """
14
  # Initialize DynamicFilters
15
  dynamic_filters = DynamicFilters(df, filters=filters)
16