CineAI commited on
Commit
cf08317
1 Parent(s): 5a785fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -65,7 +65,7 @@ def get_text():
65
  text = a2t.predict()
66
  print(f"Text from A2T:\n{text}")
67
  execution_time = time.perf_counter() - start_time
68
- print(f"App.py -> main() -> time of execution A2T -> {execution_time}s")
69
 
70
  return text
71
  except Exception as e:
@@ -81,7 +81,7 @@ def speaking(text):
81
  start_time_t2a = time.perf_counter()
82
  t2a.autoplay(response)
83
  execution_time_t2a = time.perf_counter() - start_time_t2a
84
- print(f"App.py -> main() -> time of execution T2A -> {execution_time_t2a}s")
85
  print(ic.pil_image)
86
 
87
  if response:
@@ -89,10 +89,11 @@ def speaking(text):
89
  st.markdown(f"Chelsea response: {response}")
90
 
91
  except Exception as e:
92
- print(f"An error occurred in get_response function, reasone is: {e}")
93
 
94
  def main():
95
  text = get_text()
 
96
  speaking(text)
97
  print(f"Checking for execution main func {random.randint(0, 10)}")
98
 
 
65
  text = a2t.predict()
66
  print(f"Text from A2T:\n{text}")
67
  execution_time = time.perf_counter() - start_time
68
+ print(f"App.py -> get_text() -> time of execution A2T -> {execution_time}s")
69
 
70
  return text
71
  except Exception as e:
 
81
  start_time_t2a = time.perf_counter()
82
  t2a.autoplay(response)
83
  execution_time_t2a = time.perf_counter() - start_time_t2a
84
+ print(f"App.py -> speaking() -> time of execution T2A -> {execution_time_t2a}s")
85
  print(ic.pil_image)
86
 
87
  if response:
 
89
  st.markdown(f"Chelsea response: {response}")
90
 
91
  except Exception as e:
92
+ print(f"An error occurred in speaking function, reasone is: {e}")
93
 
94
  def main():
95
  text = get_text()
96
+ print(f"Print text: s{text}s")
97
  speaking(text)
98
  print(f"Checking for execution main func {random.randint(0, 10)}")
99