TejAndrewsACC commited on
Commit
b8ddc04
Β·
verified Β·
1 Parent(s): 8098c26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -0
app.py CHANGED
@@ -97,6 +97,30 @@ def generate_score_chart_fun_ai(dataframe):
97
  )
98
  fig.update_traces(textposition="outside")
99
  return fig
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  # πŸ“ˆ **Animated Score Visualization for Laser Models**
102
  def generate_score_chart_laser(dataframe):
@@ -200,6 +224,8 @@ with demo:
200
  score_chart_ai = gr.Plot(generate_score_chart_ai(acc_models_df))
201
  score_chart_assistant_ai = gr.Plot(generate_score_chart_assistant_ai(acc_models_df))
202
  score_chart_fun_ai = gr.Plot(generate_score_chart_fun_ai(acc_models_df))
 
 
203
  score_chart_laser = gr.Plot(generate_score_chart_laser(acc_models_df))
204
  gr.HTML("<h3>🎨 AI Models</h3>")
205
  gr.HTML("<h3>⚑ Laser Models</h3>")
 
97
  )
98
  fig.update_traces(textposition="outside")
99
  return fig
100
+
101
+ # πŸ“ˆ **Animated Score Visualization for AI**
102
+ def generate_score_chart_conscious_ai(dataframe):
103
+ fig = px.bar(
104
+ dataframe[dataframe["Category"] == "Conscious"].sort_values(by="Score", ascending=True),
105
+ x="Score", y="Model", orientation="h",
106
+ color="Score", text="Score",
107
+ title="πŸ’  AI Model Performance(Conscious)",
108
+ color_continuous_scale="electric"
109
+ )
110
+ fig.update_traces(textposition="outside")
111
+ return fig
112
+
113
+ # πŸ“ˆ **Animated Score Visualization for AI**
114
+ def generate_score_chart_experimental_ai(dataframe):
115
+ fig = px.bar(
116
+ dataframe[dataframe["Category"] == "Experimental"].sort_values(by="Score", ascending=True),
117
+ x="Score", y="Model", orientation="h",
118
+ color="Score", text="Score",
119
+ title="πŸ”¬ AI Model Performance(Experimental)",
120
+ color_continuous_scale="electric"
121
+ )
122
+ fig.update_traces(textposition="outside")
123
+ return fig
124
 
125
  # πŸ“ˆ **Animated Score Visualization for Laser Models**
126
  def generate_score_chart_laser(dataframe):
 
224
  score_chart_ai = gr.Plot(generate_score_chart_ai(acc_models_df))
225
  score_chart_assistant_ai = gr.Plot(generate_score_chart_assistant_ai(acc_models_df))
226
  score_chart_fun_ai = gr.Plot(generate_score_chart_fun_ai(acc_models_df))
227
+ score_chart_conscious_ai = gr.Plot(generate_score_chart_conscious_ai(acc_models_df))
228
+ score_chart_experimental_ai = gr.Plot(generate_score_chart_experimental_ai(acc_models_df))
229
  score_chart_laser = gr.Plot(generate_score_chart_laser(acc_models_df))
230
  gr.HTML("<h3>🎨 AI Models</h3>")
231
  gr.HTML("<h3>⚑ Laser Models</h3>")