Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -67,10 +67,11 @@ with tab1:
|
|
67 |
if search_query:
|
68 |
with st.spinner("Searching for cases..."):
|
69 |
text = extract_text_from_api(search_query)
|
70 |
-
|
71 |
if text:
|
72 |
#st.write(text)
|
73 |
summary = get_summary(text)
|
|
|
74 |
if summary:
|
75 |
#st.write(summary.candidates.safety_ratings)
|
76 |
st.write(summary.candidates[0].safety_ratings)
|
|
|
67 |
if search_query:
|
68 |
with st.spinner("Searching for cases..."):
|
69 |
text = extract_text_from_api(search_query)
|
70 |
+
|
71 |
if text:
|
72 |
#st.write(text)
|
73 |
summary = get_summary(text)
|
74 |
+
st.write(summary.candidates[0].safety_ratings)
|
75 |
if summary:
|
76 |
#st.write(summary.candidates.safety_ratings)
|
77 |
st.write(summary.candidates[0].safety_ratings)
|