CineAI commited on
Commit
0f596d3
1 Parent(s): 7c29ee2

4172637469634d6f6e6b6579733a33312e30372e32343a31373a3334

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -39,7 +39,6 @@ def main():
39
  if mic is not None:
40
  a2t = A2T(mic["bytes"])
41
  text = a2t.predict()
42
- print(f"Text: {text}")
43
 
44
  prompt = select_prompt(input_text=text, prompts=prompts, keywords=keywords)
45
  print(f"Prompt:\n{prompt}")
@@ -48,11 +47,12 @@ def main():
48
  t2a.autoplay(response)
49
 
50
  if response:
51
- st.markdown(f"Your input: {prompt['Question']}")
52
  st.markdown(f"Chelsea response: {response}")
53
-
54
- prompt = None
55
- response = None
 
56
  except Exception as e:
57
  print(f"An error occurred in main finction, reasone is: {e}")
58
  doc.execution()
 
39
  if mic is not None:
40
  a2t = A2T(mic["bytes"])
41
  text = a2t.predict()
 
42
 
43
  prompt = select_prompt(input_text=text, prompts=prompts, keywords=keywords)
44
  print(f"Prompt:\n{prompt}")
 
47
  t2a.autoplay(response)
48
 
49
  if response:
50
+ st.markdown(f"Your input: {text}")
51
  st.markdown(f"Chelsea response: {response}")
52
+
53
+ prompt = None
54
+ response = None
55
+
56
  except Exception as e:
57
  print(f"An error occurred in main finction, reasone is: {e}")
58
  doc.execution()