genaitiwari commited on
Commit
cd225db
·
1 Parent(s): 9661969
Files changed (2) hide show
  1. app.py +1 -11
  2. streamlitui/loadui.py +0 -9
app.py CHANGED
@@ -11,19 +11,9 @@ if __name__ == "__main__":
11
 
12
  user_inputs_controls = Streamlit_UI().load_streamlit_ui()
13
  user_inputs_display = user_inputs_controls
14
- # Mask API key in displayed outputs
15
- # if "api_key" in user_inputs_controls:
16
- # user_inputs_display["api_key"] = "*****"
17
-
18
-
19
- with st.sidebar:
20
- # Display selected configuration
21
- st.write("User Inputs:")
22
- st.json(user_inputs_display)
23
 
24
  # Basic usecasse :
25
-
26
- # userInput
27
  problem = st.chat_input("Start Chat")
28
  if problem :
29
  # LLM Configuration
 
11
 
12
  user_inputs_controls = Streamlit_UI().load_streamlit_ui()
13
  user_inputs_display = user_inputs_controls
 
 
 
 
 
 
 
 
 
14
 
15
  # Basic usecasse :
16
+ # user chat
 
17
  problem = st.chat_input("Start Chat")
18
  if problem :
19
  # LLM Configuration
streamlitui/loadui.py CHANGED
@@ -61,15 +61,6 @@ class Streamlit_UI() :
61
  st.write("### Provide OpenAI Configuration Details")
62
  selected_model_name = st.text_input("Enter Model Name", value="")
63
  st.session_state['api_key'] = st.text_input("Enter API Key", value="", type="password")
64
-
65
-
66
- # Display selected configuration
67
- st.write("### Selected Configuration")
68
- st.write(f"API Type: {api_type}")
69
- st.write(f"Model: {selected_model_name}")
70
- st.write("User Inputs:")
71
- st.json(user_inputs)
72
-
73
  else:
74
  # Get models based on selected API type
75
  selected_models = api_data.get(api_type, [])
 
61
  st.write("### Provide OpenAI Configuration Details")
62
  selected_model_name = st.text_input("Enter Model Name", value="")
63
  st.session_state['api_key'] = st.text_input("Enter API Key", value="", type="password")
 
 
 
 
 
 
 
 
 
64
  else:
65
  # Get models based on selected API type
66
  selected_models = api_data.get(api_type, [])