edchengg
commited on
Commit
•
5f6bd2c
1
Parent(s):
6aeab44
audio
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def asr(url):
|
|
33 |
return output['choices'][0]['message']['content'], transcript["text"]
|
34 |
|
35 |
title = """
|
36 |
-
|
37 |
# Create an instruction input component
|
38 |
instruction = """
|
39 |
<div style="border: 2px solid #000; padding: 10px; border-radius: 5px;">
|
@@ -49,9 +49,9 @@ demo = gr.Interface(fn=asr,
|
|
49 |
inputs=gr.inputs.Textbox(label="粘贴视频链接"),
|
50 |
outputs=[
|
51 |
gr.outputs.Textbox(label="中文"),
|
52 |
-
gr.outputs.Textbox(label="英文")
|
53 |
],
|
54 |
title=title,
|
55 |
-
description=instruction)
|
56 |
|
57 |
demo.launch()
|
|
|
33 |
return output['choices'][0]['message']['content'], transcript["text"]
|
34 |
|
35 |
title = """
|
36 |
+
轻声细译"""
|
37 |
# Create an instruction input component
|
38 |
instruction = """
|
39 |
<div style="border: 2px solid #000; padding: 10px; border-radius: 5px;">
|
|
|
49 |
inputs=gr.inputs.Textbox(label="粘贴视频链接"),
|
50 |
outputs=[
|
51 |
gr.outputs.Textbox(label="中文"),
|
52 |
+
gr.outputs.Textbox(label="英文")
|
53 |
],
|
54 |
title=title,
|
55 |
+
description=instruction,theme='huggingface',)
|
56 |
|
57 |
demo.launch()
|