He Bo
commited on
Commit
•
b36c094
1
Parent(s):
c961a3a
updata
Browse files
app.py
CHANGED
@@ -210,7 +210,7 @@ with demo:
|
|
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=
|
214 |
qa_index_textbox = gr.Textbox(label="Index")
|
215 |
qa_top_k_slider = gr.Slider(label="Top_k of source text to LLM",value=1, minimum=1, maximum=4, step=1)
|
216 |
|
|
|
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=chinese_prompt,lines=2)
|
214 |
qa_index_textbox = gr.Textbox(label="Index")
|
215 |
qa_top_k_slider = gr.Slider(label="Top_k of source text to LLM",value=1, minimum=1, maximum=4, step=1)
|
216 |
|