Spaces:
Running
Running
Syed Junaid Iqbal
commited on
Commit
•
157cffe
1
Parent(s):
3370938
Update app.py
Browse files
app.py
CHANGED
@@ -104,12 +104,12 @@ def get_conversation_chain(vectorstore):
|
|
104 |
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])
|
105 |
|
106 |
if st.session_state.model == "Google_PaLm" :
|
107 |
-
llm = GooglePalm(google_api_key = "
|
108 |
max_output_tokens = 4000,
|
109 |
callback_manager=callback_manager)
|
110 |
|
111 |
elif st.session_state.model == "Open_AIGPT-3.5-Turbo":
|
112 |
-
llm = OpenAI(api_key = "
|
113 |
callback_manager = callback_manager,
|
114 |
max_tokens= 4000 )
|
115 |
|
|
|
104 |
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])
|
105 |
|
106 |
if st.session_state.model == "Google_PaLm" :
|
107 |
+
llm = GooglePalm(google_api_key = "Add your google palm API",
|
108 |
max_output_tokens = 4000,
|
109 |
callback_manager=callback_manager)
|
110 |
|
111 |
elif st.session_state.model == "Open_AIGPT-3.5-Turbo":
|
112 |
+
llm = OpenAI(api_key = "add your openAI Key",
|
113 |
callback_manager = callback_manager,
|
114 |
max_tokens= 4000 )
|
115 |
|