vietdata commited on
Commit
0228322
·
verified ·
1 Parent(s): a4dcfdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -65,7 +65,7 @@ def performance_analysis():
65
  else:
66
  return None, None, None, None
67
 
68
- MAX_SCORE = 25 # Assuming the maximum possible score is 100
69
 
70
  def intern_view(email):
71
  if grades_df is not None:
@@ -85,19 +85,17 @@ def intern_view(email):
85
  color = "red"
86
  else:
87
  color = "green"
 
 
 
88
 
 
89
  # Return as a Markdown formatted string
90
  return f"""
91
  ### Grade Analysis for {email}
92
 
93
  - **Tổng điểm**: {normalized_score}
94
  - **số lần upload**: {num_records}
95
-
96
- <div style="background-color:{color}; padding:10px; border-radius:5px;">
97
- **Performance Level**: {color.capitalize()}
98
- </div>
99
-
100
- - Quá 3 assignment đạt level đỏ sẽ phải liên hệ manager để giải trình
101
  """, line_chart
102
  else:
103
  return gr.Error("No records found for this email. 💥!", duration=5)
 
65
  else:
66
  return None, None, None, None
67
 
68
+ MAX_SCORE = 25*2 # Assuming the maximum possible score is 100
69
 
70
  def intern_view(email):
71
  if grades_df is not None:
 
85
  color = "red"
86
  else:
87
  color = "green"
88
+ # <div style="background-color:{color}; padding:10px; border-radius:5px;">
89
+ # **Performance Level**: {color.capitalize()}
90
+ # </div>
91
 
92
+ # - Quá 3 assignment đạt level đỏ sẽ phải liên hệ manager để giải trình
93
  # Return as a Markdown formatted string
94
  return f"""
95
  ### Grade Analysis for {email}
96
 
97
  - **Tổng điểm**: {normalized_score}
98
  - **số lần upload**: {num_records}
 
 
 
 
 
 
99
  """, line_chart
100
  else:
101
  return gr.Error("No records found for this email. 💥!", duration=5)