Spaces:
Sleeping
Sleeping
ok
Browse files
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("
|
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():
|