DrishtiSharma commited on
Commit
055073f
1 Parent(s): 468a803

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -25,7 +25,13 @@ def get_text():
25
  st.title("Memory Bot")
26
 
27
  api = st.sidebar.text_input("API-key", type = "password")
28
-
29
- #if api:
 
 
 
 
 
 
30
 
31
 
 
25
  st.title("Memory Bot")
26
 
27
  api = st.sidebar.text_input("API-key", type = "password")
28
+ MODEL = st.sidebar.selectionbox(label = "Model", options = ["gpt-3.5-turbo", "text-davinci-003"])
29
+
30
+ if api:
31
+ llm = OpenAI(
32
+ temperature = 0,
33
+ open_api_key = api,
34
+ model_name = MODEL
35
+ )
36
 
37