Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
-
from
|
| 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 =
|
| 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'],
|