Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
VadMyr86
/
Bootcamp
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
97c6a9b
Bootcamp
/
utils
/
feedback.py
Vadym Myroshnyk
save
52bb745
over 1 year ago
Raw
Download with hf CLI
Copy download link
History
Blame
Safe
247 Bytes
def
get_feedback
(
score:
int
) ->
tuple
[
str
,
str
,
str
]:
if
score >
90
:
return
"✅"
,
"Excellent!"
,
"#2ecc71"
elif
score >
70
:
return
"⚠️"
,
"Some mistakes"
,
"#f39c12"
else
:
return
"❌"
,
"Try again"
,
"#e74c3c"