Spaces:
Sleeping
Sleeping
N.Achyuth Reddy
commited on
Commit
·
e027992
1
Parent(s):
8b59795
Update app.py
Browse files
app.py
CHANGED
@@ -40,14 +40,14 @@ def text_to_speech(text, language='en', filename='output.mp3'):
|
|
40 |
|
41 |
# Streamlit UI
|
42 |
# ... (previous code remains unchanged)
|
43 |
-
|
|
|
44 |
# React to user input
|
45 |
if prompt := textinput:
|
46 |
# Display user message in chat message container
|
47 |
st.chat_message("human", avatar="💬: ").markdown(prompt)
|
48 |
# Add user message to chat history
|
49 |
st.session_state.messages.append({"role": "human", "content": prompt})
|
50 |
-
textinput = st.text_input("Ask AgriTure anything...")
|
51 |
|
52 |
# Update the global response variable
|
53 |
response = predict(message=prompt)
|
|
|
40 |
|
41 |
# Streamlit UI
|
42 |
# ... (previous code remains unchanged)
|
43 |
+
textinput = st.text_input("Ask AgriTure anything...")
|
44 |
+
|
45 |
# React to user input
|
46 |
if prompt := textinput:
|
47 |
# Display user message in chat message container
|
48 |
st.chat_message("human", avatar="💬: ").markdown(prompt)
|
49 |
# Add user message to chat history
|
50 |
st.session_state.messages.append({"role": "human", "content": prompt})
|
|
|
51 |
|
52 |
# Update the global response variable
|
53 |
response = predict(message=prompt)
|