blazingbunny commited on
Commit
1d6d4f8
·
1 Parent(s): 470e7a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -74,10 +74,14 @@ def sample_analyze_entities(text_content, your_query=""):
74
  for key, value in entity.items():
75
  if value:
76
  st.write(f"**{key}:**")
77
- st.json(value)
 
 
 
78
 
79
  st.write("----")
80
 
 
81
  st.write(f"### Language of the text: {response.language}")
82
 
83
  # User input for text analysis
 
74
  for key, value in entity.items():
75
  if value:
76
  st.write(f"**{key}:**")
77
+ if isinstance(value, (list, dict)):
78
+ st.json(value)
79
+ else:
80
+ st.write(value)
81
 
82
  st.write("----")
83
 
84
+
85
  st.write(f"### Language of the text: {response.language}")
86
 
87
  # User input for text analysis