JohnTan38 commited on
Commit
7fa712e
1 Parent(s): c4168a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,7 +9,7 @@ from threading import Lock
9
 
10
  def load_chain():
11
  """Logic for loading the chain you want to use should go here."""
12
- llm = OpenAI(temperature=0)
13
  chain = ConversationChain(llm=llm)
14
  return chain
15
 
@@ -53,11 +53,11 @@ class ChatWrapper:
53
 
54
  chat = ChatWrapper()
55
 
56
- block = gr.Blocks(css=".gradio-container {background-color: lightgray}")
57
 
58
  with block:
59
  with gr.Row():
60
- gr.Markdown("<h3><center>LangChain Demo</center></h3>")
61
 
62
  openai_api_key_textbox = gr.Textbox(
63
  placeholder="Paste your OpenAI API key (sk-...)",
 
9
 
10
  def load_chain():
11
  """Logic for loading the chain you want to use should go here."""
12
+ llm = OpenAI(temperature=0.5)
13
  chain = ConversationChain(llm=llm)
14
  return chain
15
 
 
53
 
54
  chat = ChatWrapper()
55
 
56
+ block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
57
 
58
  with block:
59
  with gr.Row():
60
+ gr.Markdown("<h2><center>LangChain AI Chatbot</center></h2>")
61
 
62
  openai_api_key_textbox = gr.Textbox(
63
  placeholder="Paste your OpenAI API key (sk-...)",