FranklinWillemen commited on
Commit
1b7a6e4
1 Parent(s): 22ba21a

small edits

Browse files
Files changed (2) hide show
  1. discourse.py +0 -1
  2. gradio-ui.py +1 -1
discourse.py CHANGED
@@ -39,7 +39,6 @@ def gen_voice(response, response_filename):
39
  stream.save_to_wav_file(response_filename)
40
 
41
  def memory():
42
-
43
  with open(DATA_FILE, "a") as csvfile:
44
  for message in context:
45
  writer = csv.DictWriter(csvfile, fieldnames=["name", "message"])
 
39
  stream.save_to_wav_file(response_filename)
40
 
41
  def memory():
 
42
  with open(DATA_FILE, "a") as csvfile:
43
  for message in context:
44
  writer = csv.DictWriter(csvfile, fieldnames=["name", "message"])
gradio-ui.py CHANGED
@@ -18,7 +18,7 @@ with gr.Blocks(theme=theme) as ui:
18
  btn1 = gr.Button("Respond")
19
  btn1.click(fn=d.respond, inputs=message, outputs=[audio_response])
20
 
21
- btn2 = gr.Button("Save Transcript")
22
  btn2.click(fn=d.memory)
23
 
24
  ui.launch()
 
18
  btn1 = gr.Button("Respond")
19
  btn1.click(fn=d.respond, inputs=message, outputs=[audio_response])
20
 
21
+ btn2 = gr.Button("Save Conversation")
22
  btn2.click(fn=d.memory)
23
 
24
  ui.launch()