Update app.py
Browse files
app.py
CHANGED
@@ -40,14 +40,14 @@ st.write("Generate reports enriched with real-time insights using the AI Veterin
|
|
40 |
prompt = st.text_area("Enter the description of your patient visit:", placeholder="E.g., What is the latest research findings on cancer in horses?")
|
41 |
|
42 |
# Button to generate blog content
|
43 |
-
if st.button("Generate
|
44 |
if prompt:
|
45 |
-
with st.spinner("Generating
|
46 |
try:
|
47 |
# Run the blog agent with the given prompt
|
48 |
result = manager_agent.run(prompt)
|
49 |
# Display the generated blog content
|
50 |
-
st.subheader("Generated
|
51 |
st.write(result)
|
52 |
|
53 |
# Log backend activity
|
|
|
40 |
prompt = st.text_area("Enter the description of your patient visit:", placeholder="E.g., What is the latest research findings on cancer in horses?")
|
41 |
|
42 |
# Button to generate blog content
|
43 |
+
if st.button("Generate Summary"):
|
44 |
if prompt:
|
45 |
+
with st.spinner("Generating content..."):
|
46 |
try:
|
47 |
# Run the blog agent with the given prompt
|
48 |
result = manager_agent.run(prompt)
|
49 |
# Display the generated blog content
|
50 |
+
st.subheader("Generated Summary:")
|
51 |
st.write(result)
|
52 |
|
53 |
# Log backend activity
|