4172637469634d6f6e6b6579733a33312e30372e32343a31373a3334
Browse files
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: {
|
52 |
st.markdown(f"Chelsea response: {response}")
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
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()
|