aichina commited on
Commit
26b8bf9
1 Parent(s): 4f921f8
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ def convert(res,openai_key):
51
  answer = ''
52
  for txt_line in split_list(content,10):
53
  txt_line_content = '\n'.join(txt_line)
54
- prompt = f"将下面的内容使用简体中文总结5条要点出来:\n\n{txt_line_content}"
55
  open_ai_res = create(prompt,openai_key)
56
  answer += prompt + '\n GPT3:\n' + open_ai_res['choices'][0]['text']
57
  except Exception as e:
@@ -107,7 +107,7 @@ with gr.Blocks() as demo:
107
 
108
 
109
  with gr.Row():
110
- gr.Markdown("Larger models are more accurate, but slower. For 1min video, it'll take ~30s (tiny), ~1min (base), ~3min (small), ~5min (medium), etc.")
111
  transcribe_btn = gr.Button('Transcribe')
112
 
113
  with gr.Column():
 
51
  answer = ''
52
  for txt_line in split_list(content,10):
53
  txt_line_content = '\n'.join(txt_line)
54
+ prompt = f"\n\n将下面的内容使用简体中文总结5条要点出来:\n\n{txt_line_content}"
55
  open_ai_res = create(prompt,openai_key)
56
  answer += prompt + '\n GPT3:\n' + open_ai_res['choices'][0]['text']
57
  except Exception as e:
 
107
 
108
 
109
  with gr.Row():
110
+ gr.Markdown("自动从youtuble视频中,获取音频内容,并使用GPT总结其要点")
111
  transcribe_btn = gr.Button('Transcribe')
112
 
113
  with gr.Column():