Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,22 +27,16 @@ class DialogueToSpeechConverter:
|
|
| 27 |
torch.cuda.empty_cache()
|
| 28 |
return result
|
| 29 |
|
| 30 |
-
# Gradio interface
|
| 31 |
def create_interface():
|
| 32 |
converter = DialogueToSpeechConverter()
|
| 33 |
with gr.Blocks() as app:
|
| 34 |
-
gr.Markdown(
|
| 35 |
-
gr.Markdown(
|
| 36 |
-
You can also use Nexus🐦⬛Raven on your laptop & by cloning this space. 🧬🔬🔍 Simply click here: <a style="display:inline-block" href="https://huggingface.co/spaces/Tonic1/NexusRaven2?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></h3>
|
| 37 |
-
Join us : 🌟TeamTonic🌟 is always making cool demos! Join our active builder's🛠️community on 👻Discord: [Discord](https://discord.gg/GWpVpekp) On 🤗Huggingface: [TeamTonic](https://huggingface.co/TeamTonic) & [MultiTransformer](https://huggingface.co/MultiTransformer) On 🌐Github: [Polytonic](https://github.com/tonic-ai) & contribute to 🌟 [PolyGPT](https://github.com/tonic-ai/polygpt-alpha)
|
| 38 |
-
""")
|
| 39 |
with gr.Row():
|
| 40 |
input_text = gr.Textbox(label="Input Text")
|
| 41 |
submit_button = gr.Button("Submit")
|
| 42 |
output_text = gr.Textbox(label="Nexus🐦⬛Raven")
|
| 43 |
-
|
| 44 |
submit_button.click(converter.process_text, inputs=input_text, outputs=output_text)
|
| 45 |
-
|
| 46 |
return app
|
| 47 |
|
| 48 |
if __name__ == "__main__":
|
|
@@ -103,8 +97,7 @@ be rude, but upon my word, Miss Woodhouse, you do look – how do you like Jane
|
|
| 103 |
User Query: Currently, one way that the wealthy distinguish themselves from others is through the collection of rare objects. In a Celebration Society, to own an “original” of something will remain significant. However, barring a desire to prevent others from enjoying the experience, it will become possible to have perfect replicas of all manner of objects including paintings and sculptures.
|
| 104 |
There will still be pride of ownership in the original. Others will be able to fully enjoy the “same” piece as well.
|
| 105 |
use either speech to single voice if there's no dialogue or create_audio_sequence_order if there is dialogue<human_end>
|
| 106 |
-
'''
|
| 107 |
-
]
|
| 108 |
],
|
| 109 |
title=title,
|
| 110 |
description=description
|
|
|
|
| 27 |
torch.cuda.empty_cache()
|
| 28 |
return result
|
| 29 |
|
|
|
|
| 30 |
def create_interface():
|
| 31 |
converter = DialogueToSpeechConverter()
|
| 32 |
with gr.Blocks() as app:
|
| 33 |
+
gr.Markdown(title)
|
| 34 |
+
gr.Markdown(description)
|
|
|
|
|
|
|
|
|
|
| 35 |
with gr.Row():
|
| 36 |
input_text = gr.Textbox(label="Input Text")
|
| 37 |
submit_button = gr.Button("Submit")
|
| 38 |
output_text = gr.Textbox(label="Nexus🐦⬛Raven")
|
|
|
|
| 39 |
submit_button.click(converter.process_text, inputs=input_text, outputs=output_text)
|
|
|
|
| 40 |
return app
|
| 41 |
|
| 42 |
if __name__ == "__main__":
|
|
|
|
| 97 |
User Query: Currently, one way that the wealthy distinguish themselves from others is through the collection of rare objects. In a Celebration Society, to own an “original” of something will remain significant. However, barring a desire to prevent others from enjoying the experience, it will become possible to have perfect replicas of all manner of objects including paintings and sculptures.
|
| 98 |
There will still be pride of ownership in the original. Others will be able to fully enjoy the “same” piece as well.
|
| 99 |
use either speech to single voice if there's no dialogue or create_audio_sequence_order if there is dialogue<human_end>
|
| 100 |
+
''']
|
|
|
|
| 101 |
],
|
| 102 |
title=title,
|
| 103 |
description=description
|