techasad commited on
Commit
ea29040
1 Parent(s): 62a0783

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
 
2
  import gradio as gr
3
- from langchain.llms import GooglePalm
4
  from langchain.prompts import PromptTemplate
5
  from langchain.chains import LLMChain, SequentialChain
6
  import os
@@ -15,7 +15,7 @@ def generate_game_name_and_functions(type):
15
  os.getenv('GOOGLE_API_KEY')
16
  configure()
17
 
18
- llm = GooglePalm(temperature=0.5)
19
 
20
  prompt_template_name = PromptTemplate(
21
  input_variables=['type'],
 
1
 
2
  import gradio as gr
3
+ from langchain_community.llms.GooglePalm import ChatGooglePalm
4
  from langchain.prompts import PromptTemplate
5
  from langchain.chains import LLMChain, SequentialChain
6
  import os
 
15
  os.getenv('GOOGLE_API_KEY')
16
  configure()
17
 
18
+ llm = ChatGooglePalm(temperature=0.5)
19
 
20
  prompt_template_name = PromptTemplate(
21
  input_variables=['type'],