JRQi commited on
Commit
a54af95
β€’
1 Parent(s): db752b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -23,8 +23,11 @@ def reset_scores():
23
  "Scores": [0, 0],
24
  }
25
  )
26
- tot_scores = ''' ### <p style="text-align: center;"> πŸ€– Machine &ensp; ''' + str(int(0)) + ''' &ensp; VS &ensp; ''' + str(int(0)) + ''' &ensp; Human πŸ™‹ </p>'''
27
-
 
 
 
28
  # scroe_human = ''' # Human: ''' + str(int(0))
29
  # scroe_robot = ''' # Robot: ''' + str(int(0))
30
 
@@ -110,7 +113,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
110
  tot_scores_1 = gr.Markdown(
111
  '''
112
  ### <p style="text-align: center;"> Today's Scores:</p>
113
- ### <p style="text-align: center;"> πŸ€– Machine &ensp; <span style="color: red;">''' + str(int(0)) + '''</span> &ensp; VS &ensp; ''' + str(int(0)) + ''' &ensp; Human πŸ™‹ </p>'''
114
  )
115
  with gr.Row():
116
  with gr.Column(scale=2):
@@ -181,14 +184,18 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
181
  - Step 3: Check the word highlighting to understand how AI made its decision.
182
  '''
183
  )
184
- gr.Markdown(
185
- ''' ## Today's Scores
186
- '''
187
- )
 
 
 
188
  tot_scores_2 = gr.Markdown(
189
- ''' ### <p style="text-align: center;"> πŸ€– Machine &ensp; ''' + str(int(0)) + ''' &ensp; VS &ensp; ''' + str(int(0)) + ''' &ensp; Human πŸ™‹ </p>'''
 
 
190
  )
191
-
192
  with gr.Row():
193
  with gr.Column(scale=2):
194
  chat_button_mf = gr.Button("Click to see AI's guess", size='sm')
 
23
  "Scores": [0, 0],
24
  }
25
  )
26
+ tot_scores = gr.Markdown(
27
+ '''
28
+ ### <p style="text-align: center;"> Today's Scores:</p>
29
+ ### <p style="text-align: center;"> πŸ€– Machine &ensp; <span style="color: red;">''' + str(int(0)) + '''</span> &ensp; VS &ensp; <span style="color: green;">''' + str(int(0)) + '''</span> &ensp; Human πŸ™‹ </p>'''
30
+ )
31
  # scroe_human = ''' # Human: ''' + str(int(0))
32
  # scroe_robot = ''' # Robot: ''' + str(int(0))
33
 
 
113
  tot_scores_1 = gr.Markdown(
114
  '''
115
  ### <p style="text-align: center;"> Today's Scores:</p>
116
+ ### <p style="text-align: center;"> πŸ€– Machine &ensp; <span style="color: red;">''' + str(int(0)) + '''</span> &ensp; VS &ensp; <span style="color: green;">''' + str(int(0)) + '''</span> &ensp; Human πŸ™‹ </p>'''
117
  )
118
  with gr.Row():
119
  with gr.Column(scale=2):
 
184
  - Step 3: Check the word highlighting to understand how AI made its decision.
185
  '''
186
  )
187
+ # gr.Markdown(
188
+ # ''' ## Today's Scores
189
+ # '''
190
+ # )
191
+ # tot_scores_2 = gr.Markdown(
192
+ # ''' ### <p style="text-align: center;"> πŸ€– Machine &ensp; ''' + str(int(0)) + ''' &ensp; VS &ensp; ''' + str(int(0)) + ''' &ensp; Human πŸ™‹ </p>'''
193
+ # )
194
  tot_scores_2 = gr.Markdown(
195
+ '''
196
+ ### <p style="text-align: center;"> Today's Scores:</p>
197
+ ### <p style="text-align: center;"> πŸ€– Machine &ensp; <span style="color: red;">''' + str(int(0)) + '''</span> &ensp; VS &ensp; <span style="color: green;">''' + str(int(0)) + '''</span> &ensp; Human πŸ™‹ </p>'''
198
  )
 
199
  with gr.Row():
200
  with gr.Column(scale=2):
201
  chat_button_mf = gr.Button("Click to see AI's guess", size='sm')