Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ prompt = PromptTemplate(
|
|
23 |
memory = ConversationBufferMemory(memory_key="chat_history")
|
24 |
|
25 |
llm_chain = LLMChain(
|
26 |
-
llm=ChatGoogleGenerativeAI(
|
27 |
prompt=prompt,
|
28 |
verbose=True,
|
29 |
memory=memory,
|
@@ -35,5 +35,4 @@ def get_text_response(user_message,history):
|
|
35 |
|
36 |
demo = gr.ChatInterface(get_text_response)
|
37 |
|
38 |
-
|
39 |
-
demo.launch() #To create a public link, set `share=True` in `launch()`. To enable errors and logs, set `debug=True` in `launch()`.
|
|
|
23 |
memory = ConversationBufferMemory(memory_key="chat_history")
|
24 |
|
25 |
llm_chain = LLMChain(
|
26 |
+
llm=ChatGoogleGenerativeAI(model="gemini-pro"),
|
27 |
prompt=prompt,
|
28 |
verbose=True,
|
29 |
memory=memory,
|
|
|
35 |
|
36 |
demo = gr.ChatInterface(get_text_response)
|
37 |
|
38 |
+
demo.launch() #To create a public link, set `share=True` in `launch()`. To enable errors and logs, set `debug=True` in `launch()`.
|
|