pfb30 commited on
Commit
8b3b181
1 Parent(s): 3dcfc9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -1,5 +1,4 @@
1
- """PUBLIC
2
- Simple demo app.
3
 
4
  Copyright PolyAI Limited.
5
  """
@@ -10,7 +9,7 @@ import gradio as gr
10
 
11
  from transformer_infer import PhemeClient, parse_arguments
12
 
13
- # TODO
14
  VOICE_OPTIONS = [
15
  "male_voice",
16
  "POD1000000004_S0000246",
@@ -18,7 +17,6 @@ VOICE_OPTIONS = [
18
  "POD1000000048_S0000035",
19
  "YOU1000000006_S0000051",
20
  "YOU1000000044_S0000798",
21
- "empress",
22
  ]
23
 
24
  args = parse_arguments()
@@ -45,15 +43,15 @@ def inference(
45
 
46
  def main():
47
  title = "Pheme"
48
- description = """Model can generate a variety of conversational voices."""
49
  text = gr.Textbox(
50
  lines=3,
51
- value="Our property has several wedding venues.",
52
  label="Text",
53
  )
54
 
55
  voice = gr.Dropdown(
56
- VOICE_OPTIONS, value="empress", label="Select voice:", type="value"
57
  )
58
  temperature = gr.Slider(minimum=.3, maximum=1.5, value=0.7, step=0.05)
59
  top_k = gr.Slider(minimum=10, maximum=250, value=210)
 
1
+ """Simple demo app.
 
2
 
3
  Copyright PolyAI Limited.
4
  """
 
9
 
10
  from transformer_infer import PhemeClient, parse_arguments
11
 
12
+
13
  VOICE_OPTIONS = [
14
  "male_voice",
15
  "POD1000000004_S0000246",
 
17
  "POD1000000048_S0000035",
18
  "YOU1000000006_S0000051",
19
  "YOU1000000044_S0000798",
 
20
  ]
21
 
22
  args = parse_arguments()
 
43
 
44
  def main():
45
  title = "Pheme"
46
+ description = """Pheme Model can generate a variety of conversational voices in 16 kHz for phone-call applications."""
47
  text = gr.Textbox(
48
  lines=3,
49
+ value="I gotta say, I never expect that to happened. Um I had some expectations but you know.",
50
  label="Text",
51
  )
52
 
53
  voice = gr.Dropdown(
54
+ VOICE_OPTIONS, value="POD1000000048_S0000035", label="Select voice:", type="value"
55
  )
56
  temperature = gr.Slider(minimum=.3, maximum=1.5, value=0.7, step=0.05)
57
  top_k = gr.Slider(minimum=10, maximum=250, value=210)