Docfile commited on
Commit
389f742
·
1 Parent(s): 4b29c75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -23,7 +23,7 @@ prompt = PromptTemplate(
23
  memory = ConversationBufferMemory(memory_key="chat_history")
24
 
25
  llm_chain = LLMChain(
26
- llm=ChatGoogleGenerativeAI(temperature='0.5', model_name="gemini-pro"),
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
- if __name__ == "__main__":
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()`.