seiching commited on
Commit
6fce298
1 Parent(s): 4082345

update the prompt default value

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -299,7 +299,7 @@ def writenotes( LLMmodel,apikeystr,prompt,inputscript):
299
  return ainotestext
300
  ainotes = gr.Interface(
301
  fn=writenotes,
302
- inputs=[ gr.inputs.Radio(["gemini","gpt-3.5-turbo", "gpt-4-0125-preview"], label="LLMmodel", default="gemini"),gr.Textbox(label="使用GPT請輸入OPEN AI API KEY",placeholder="請輸入sk..."),gr.Textbox(label="提示詞(prompt)",placeholder=DEFAULTPROMPT),gr.Textbox(label="逐字稿",placeholder="若沒有做語音辨識,請輸入逐字稿")],
303
  outputs="text",
304
  layout="horizontal",
305
  theme="huggingface",
 
299
  return ainotestext
300
  ainotes = gr.Interface(
301
  fn=writenotes,
302
+ inputs=[ gr.inputs.Radio(["gemini","gpt-3.5-turbo", "gpt-4-0125-preview"], label="LLMmodel", default="gemini"),gr.Textbox(label="使用GPT請輸入OPEN AI API KEY",placeholder="請輸入sk..."),gr.Textbox(label="提示詞(prompt)",placeholder=DEFAULTPROMPT,default=DEFAULTPROMPT),gr.Textbox(label="逐字稿",placeholder="若沒有做語音辨識,請輸入逐字稿")],
303
  outputs="text",
304
  layout="horizontal",
305
  theme="huggingface",