Spaces:
Configuration error
Configuration error
Yurii Paniv
commited on
Commit
·
e2a6612
1
Parent(s):
907784a
Add description
Browse files
app.py
CHANGED
@@ -49,6 +49,9 @@ def transcribe(audio, selected_voice, history):
|
|
49 |
_, output_text = tts.tts(response, selected_voice, Stress.Dictionary.value, fp)
|
50 |
return text, fp.name, history, history
|
51 |
|
|
|
|
|
|
|
52 |
|
53 |
iface = gr.Interface(
|
54 |
fn=transcribe,
|
@@ -69,7 +72,6 @@ iface = gr.Interface(
|
|
69 |
description="""Це альфа-версія end-to-end розмовного бота, з яким можна поспілкуватися голосом.
|
70 |
Перейдіть сюди для доступу до текстової версії: [https://huggingface.co/robinhad/gpt2-uk-conversational](https://huggingface.co/robinhad/gpt2-uk-conversational)
|
71 |
""",
|
72 |
-
article=
|
73 |
-
Синтез української: [https://huggingface.co/spaces/robinhad/ukrainian-tts](https://huggingface.co/spaces/robinhad/ukrainian-tts)""",
|
74 |
)
|
75 |
iface.launch()
|
|
|
49 |
_, output_text = tts.tts(response, selected_voice, Stress.Dictionary.value, fp)
|
50 |
return text, fp.name, history, history
|
51 |
|
52 |
+
with open("README.md") as file:
|
53 |
+
article = file.read()
|
54 |
+
article = article[article.find("---\n", 4) + 5 : :]
|
55 |
|
56 |
iface = gr.Interface(
|
57 |
fn=transcribe,
|
|
|
72 |
description="""Це альфа-версія end-to-end розмовного бота, з яким можна поспілкуватися голосом.
|
73 |
Перейдіть сюди для доступу до текстової версії: [https://huggingface.co/robinhad/gpt2-uk-conversational](https://huggingface.co/robinhad/gpt2-uk-conversational)
|
74 |
""",
|
75 |
+
article=article,
|
|
|
76 |
)
|
77 |
iface.launch()
|