Update app.py
Browse files
app.py
CHANGED
@@ -72,17 +72,6 @@ def format_elapsed_time(time):
|
|
72 |
# Format the elapsed time to two decimal places
|
73 |
return "{:.2f}".format(time)
|
74 |
|
75 |
-
def update_history(response):
|
76 |
-
# Initialize the history list if it doesn't exist
|
77 |
-
if 'history' not in st.session_state:
|
78 |
-
st.session_state.history = []
|
79 |
-
|
80 |
-
# Append the agent's response to the history
|
81 |
-
st.session_state.history.append("Agent: " + response['content'])
|
82 |
-
def display_history():
|
83 |
-
# Display each item in the history
|
84 |
-
for item in st.session_state.history:
|
85 |
-
st.text_area(label="", value=item, height=75)
|
86 |
|
87 |
# Title of the application
|
88 |
# st.image('agentBuilderLogo.png')
|
|
|
72 |
# Format the elapsed time to two decimal places
|
73 |
return "{:.2f}".format(time)
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
# Title of the application
|
77 |
# st.image('agentBuilderLogo.png')
|