He Bo commited on
Commit
b5841fa
1 Parent(s): 61b4456
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import json
3
  import gradio as gr
4
  from datetime import datetime
5
 
6
- invoke_url = "https://cck91amo7f.execute-api.us-west-2.amazonaws.com/prod"
7
  api = invoke_url + '/langchain_processor_qa?query='
8
 
9
  # chinese_index = "smart_search_qa_test_0614_wuyue_2"
@@ -208,7 +208,7 @@ with demo:
208
  session_id_textbox = gr.Textbox(label="Session ID")
209
  qa_button = gr.Button("Summit")
210
 
211
- qa_language_radio = gr.Radio(["chinese-glm","chinese-glm2", "english"],value="chinese",label="Language")
212
  # qa_llm_radio = gr.Radio(["p3-8x", "g4dn-8x"],value="p3-8x",label="Chinese llm instance")
213
  qa_prompt_textbox = gr.Textbox(label="Prompt( must include {context} and {question} )",placeholder=en_prompt_template,lines=2)
214
  qa_index_textbox = gr.Textbox(label="Index")
 
3
  import gradio as gr
4
  from datetime import datetime
5
 
6
+ invoke_url = "https://d6853e5k1c.execute-api.us-west-2.amazonaws.com/prod"
7
  api = invoke_url + '/langchain_processor_qa?query='
8
 
9
  # chinese_index = "smart_search_qa_test_0614_wuyue_2"
 
208
  session_id_textbox = gr.Textbox(label="Session ID")
209
  qa_button = gr.Button("Summit")
210
 
211
+ qa_language_radio = gr.Radio(["chinese-glm","chinese-glm2", "english"],value="chinese-glm",label="Language")
212
  # qa_llm_radio = gr.Radio(["p3-8x", "g4dn-8x"],value="p3-8x",label="Chinese llm instance")
213
  qa_prompt_textbox = gr.Textbox(label="Prompt( must include {context} and {question} )",placeholder=en_prompt_template,lines=2)
214
  qa_index_textbox = gr.Textbox(label="Index")