Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|
57 |
|
58 |
with block:
|
59 |
with gr.Row():
|
60 |
-
gr.Markdown("<
|
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-...)",
|