Jiranuwat commited on
Commit
5b55b54
1 Parent(s): 50d2989

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,8 +74,6 @@ B.add_edges_from((("START B","B1"),("B1","B2"),("B2","END B")))
74
  Bot_dialog = nx.compose(A, B)
75
  Bot_dialog.add_edges_from((("END A1","START B"),("END A2","START B")))
76
 
77
- current_node = "START A"
78
-
79
  def addfile(filepath):
80
  return filepath
81
  def submit_file(filepath):
@@ -147,6 +145,8 @@ async def restart(history):
147
  return [history[0]], '', 'tts_temp.wav'
148
 
149
  async def main():
 
 
150
  # init first audio greeting
151
  await text_to_speech([[None, Bot_dialog.nodes["START A"]["response"]]])
152
 
 
74
  Bot_dialog = nx.compose(A, B)
75
  Bot_dialog.add_edges_from((("END A1","START B"),("END A2","START B")))
76
 
 
 
77
  def addfile(filepath):
78
  return filepath
79
  def submit_file(filepath):
 
145
  return [history[0]], '', 'tts_temp.wav'
146
 
147
  async def main():
148
+ current_node = "START A"
149
+
150
  # init first audio greeting
151
  await text_to_speech([[None, Bot_dialog.nodes["START A"]["response"]]])
152