KorWoody commited on
Commit
6169128
Β·
1 Parent(s): 02e629a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -44,11 +44,11 @@ def LoadData(openai_key):
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=freelv),
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
- freelv = gr.Textbox(placeholder="μœ μ—°μ„±", show_label=False, container=False)
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