loubnabnl HF staff commited on
Commit
8e7670b
1 Parent(s): c6da86c

add text for empty dataset

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -78,4 +78,6 @@ if max_docs > 0:
78
  st.code(example["content"], language=chosen_language)
79
  else:
80
  st.text(f"File can't be lexed so we remove syntax highlighting.\nContent:\n")
81
- st.text(str(example["content"]))
 
 
 
78
  st.code(example["content"], language=chosen_language)
79
  else:
80
  st.text(f"File can't be lexed so we remove syntax highlighting.\nContent:\n")
81
+ st.text(str(example["content"]))
82
+ else:
83
+ st.text("The dataset is empty after the filtering!")