Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,11 +44,11 @@ def LoadData(openai_key):
|
|
44 |
# μ±λ΄μ λ΅λ³μ μ²λ¦¬νλ ν¨μ
|
45 |
def respond(message, chat_history):
|
46 |
try:
|
47 |
-
if freelv == "":
|
48 |
-
|
49 |
|
50 |
qa_chain = RetrievalQA.from_chain_type(
|
51 |
-
llm=OpenAI(temperature=
|
52 |
# llm=OpenAI(temperature=0.4),
|
53 |
# llm=ChatOpenAI(temperature=0),
|
54 |
chain_type="stuff",
|
@@ -101,8 +101,8 @@ with gr.Blocks(css=css) as UnivChatbot:
|
|
101 |
openai_key = gr.Textbox(label="You OpenAI API key", type="password", placeholder="OpenAI Key Type", elem_id="InputKey", show_label=False, container=False)
|
102 |
with gr.Column(scale=1):
|
103 |
langchain_status = gr.Textbox(placeholder="Status", interactive=False, show_label=False, container=False)
|
104 |
-
with gr.Column(scale=1):
|
105 |
-
|
106 |
with gr.Column(scale=1):
|
107 |
chk_key = gr.Button("νμΈ", variant="primary")
|
108 |
|
|
|
44 |
# μ±λ΄μ λ΅λ³μ μ²λ¦¬νλ ν¨μ
|
45 |
def respond(message, chat_history):
|
46 |
try:
|
47 |
+
# if freelv == "":
|
48 |
+
# freelv = 0
|
49 |
|
50 |
qa_chain = RetrievalQA.from_chain_type(
|
51 |
+
llm=OpenAI(temperature=0.1),
|
52 |
# llm=OpenAI(temperature=0.4),
|
53 |
# llm=ChatOpenAI(temperature=0),
|
54 |
chain_type="stuff",
|
|
|
101 |
openai_key = gr.Textbox(label="You OpenAI API key", type="password", placeholder="OpenAI Key Type", elem_id="InputKey", show_label=False, container=False)
|
102 |
with gr.Column(scale=1):
|
103 |
langchain_status = gr.Textbox(placeholder="Status", interactive=False, show_label=False, container=False)
|
104 |
+
# with gr.Column(scale=1):
|
105 |
+
# freelv = gr.Textbox(placeholder="μ μ°μ±", show_label=False, container=False)
|
106 |
with gr.Column(scale=1):
|
107 |
chk_key = gr.Button("νμΈ", variant="primary")
|
108 |
|