Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -507,6 +507,19 @@ def transcribe(
|
|
507 |
api = HfApi()
|
508 |
nltk.download("averaged_perceptron_tagger_eng")
|
509 |
start_warmup()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
510 |
with gr.Blocks(
|
511 |
title="E2E Spoken Dialog System",
|
512 |
) as demo:
|
@@ -523,13 +536,6 @@ with gr.Blocks(
|
|
523 |
(https://github.com/siddhu001/espnet/tree/sds_demo_recipe/egs2/TEMPLATE/sds1#how-to-use).
|
524 |
"""
|
525 |
)
|
526 |
-
default_instruct=(
|
527 |
-
"You are a helpful and friendly AI "
|
528 |
-
"assistant. "
|
529 |
-
"You are polite, respectful, and aim to "
|
530 |
-
"provide concise and complete responses of "
|
531 |
-
"less than 15 words."
|
532 |
-
)
|
533 |
with gr.Row():
|
534 |
with gr.Column(scale=1):
|
535 |
user_audio = gr.Audio(
|
|
|
507 |
api = HfApi()
|
508 |
nltk.download("averaged_perceptron_tagger_eng")
|
509 |
start_warmup()
|
510 |
+
default_instruct=(
|
511 |
+
"You are a helpful and friendly AI "
|
512 |
+
"assistant. "
|
513 |
+
"You are polite, respectful, and aim to "
|
514 |
+
"provide concise and complete responses of "
|
515 |
+
"less than 15 words."
|
516 |
+
)
|
517 |
+
examples = pd.DataFrame([
|
518 |
+
["General Purpose Conversation", default_instruct],
|
519 |
+
["Translation", "You are a translator. Translate user text into English."],
|
520 |
+
["General Purpose Conversation with Disfluencies", "Please reply to user with lot of filler words like ummm, so"],
|
521 |
+
["Summarization", "You are summarizer. Summarize user's utterance."]
|
522 |
+
], columns=["Task", "LLM Prompt"])
|
523 |
with gr.Blocks(
|
524 |
title="E2E Spoken Dialog System",
|
525 |
) as demo:
|
|
|
536 |
(https://github.com/siddhu001/espnet/tree/sds_demo_recipe/egs2/TEMPLATE/sds1#how-to-use).
|
537 |
"""
|
538 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
539 |
with gr.Row():
|
540 |
with gr.Column(scale=1):
|
541 |
user_audio = gr.Audio(
|