FranklinWillemen commited on
Commit
8cdc72a
1 Parent(s): 008688e

comment out transcript

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ def conversation(audio:str):
43
  if message['role'] != 'system':
44
  chat_transcript += message['role'] + ": " + message['content'] + "\n\n"
45
 
46
- return chat_transcript, "voice.wav"
47
 
48
  # set a custom theme
49
  theme = gr.themes.Default().set(
@@ -60,6 +60,6 @@ with gr.Blocks(theme=theme) as ui:
60
  # text_output = gr.Textbox(label="Transcript")
61
 
62
  btn = gr.Button("Run")
63
- btn.click(fn=conversation, inputs=audio_input, outputs=[text_output, audio_output])
64
 
65
  ui.launch()
 
43
  if message['role'] != 'system':
44
  chat_transcript += message['role'] + ": " + message['content'] + "\n\n"
45
 
46
+ return "voice.wav"
47
 
48
  # set a custom theme
49
  theme = gr.themes.Default().set(
 
60
  # text_output = gr.Textbox(label="Transcript")
61
 
62
  btn = gr.Button("Run")
63
+ btn.click(fn=conversation, inputs=audio_input, outputs=[audio_output])
64
 
65
  ui.launch()