Tonic commited on
Commit
379aae7
·
verified ·
1 Parent(s): b07d07c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -31
app.py CHANGED
@@ -42,37 +42,6 @@ if __name__ == "__main__":
42
  fn=process_text,
43
  inputs="text",
44
  outputs="text",
45
- examples=[
46
- ['''
47
- Function:
48
- def create_audio_sequence_order(text):
49
- """
50
- Analyzes the text and creates an order for each character and narrator segment.
51
-
52
- Args:
53
- text (str): The text containing the dialogues and narration.
54
-
55
- Returns:
56
- list: A list of tuples, each containing the character/narrator name and a segment of their dialogue/narration.
57
- """
58
- Function:
59
- def convert_text_to_speech_single_voice(text, voice):
60
- """
61
- Converts a given text to speech using a specified voice. This function is used when there is only one character in the text.
62
-
63
- Args:
64
- text (str): The text to be converted to speech.
65
- voice (str): The voice to be used for the audio generation.
66
-
67
- Returns:
68
- str: The path to the generated speech MP3 file.
69
- """
70
-
71
- 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.
72
- There will still be pride of ownership in the original. Others will be able to fully enjoy the “same” piece as well.
73
- use either speech to single voice if there's no dialogue or create_audio_sequence_order if there is dialogue<human_end>
74
- ''']
75
- ],
76
  title=title,
77
  description=description
78
  )
 
42
  fn=process_text,
43
  inputs="text",
44
  outputs="text",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  title=title,
46
  description=description
47
  )