Kevin676 commited on
Commit
c383cda
1 Parent(s): 93bb1db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -90,7 +90,8 @@ def evaluate(
90
  token_ban = [], # ban the generation of some tokens
91
  token_stop = [0]) # stop generation whenever you see any token here
92
 
93
- instruction = result.text.strip()
 
94
  input=None
95
  # input = input.strip()
96
  ctx = generate_prompt(instruction, input)
@@ -129,7 +130,7 @@ def evaluate(
129
 
130
  res1 = ' '.join(str(x) for x in res)
131
 
132
- return [result.text, res]
133
 
134
  # yield out_str.strip()
135
 
@@ -147,7 +148,7 @@ g = gr.Interface(
147
  # gr.components.Slider(0.0, 1.0, step=0.1, value=0.4), # countPenalty
148
  ],
149
  outputs=[
150
- gr.Textbox(label="Speech to Text"),
151
  gr.Textbox(label="Raven Output"),
152
  # gr.Audio(label="Audio with Custom Voice"),
153
  ],
 
90
  token_ban = [], # ban the generation of some tokens
91
  token_stop = [0]) # stop generation whenever you see any token here
92
 
93
+ # instruction = result.text.strip()
94
+ instruction = result.text
95
  input=None
96
  # input = input.strip()
97
  ctx = generate_prompt(instruction, input)
 
130
 
131
  res1 = ' '.join(str(x) for x in res)
132
 
133
+ return res
134
 
135
  # yield out_str.strip()
136
 
 
148
  # gr.components.Slider(0.0, 1.0, step=0.1, value=0.4), # countPenalty
149
  ],
150
  outputs=[
151
+ # gr.Textbox(label="Speech to Text"),
152
  gr.Textbox(label="Raven Output"),
153
  # gr.Audio(label="Audio with Custom Voice"),
154
  ],