Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,15 +96,6 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
|
|
| 96 |
user_important = gr.Textbox(label="Which words are your guesses based on?", placeholder="Enter words that you think are important for the task")
|
| 97 |
|
| 98 |
with gr.Column(scale=1):
|
| 99 |
-
gr.Markdown(
|
| 100 |
-
''' ## Today's Scores
|
| 101 |
-
'''
|
| 102 |
-
)
|
| 103 |
-
|
| 104 |
-
tot_scores_1 = gr.Markdown(
|
| 105 |
-
''' ### <p style="text-align: center;"> π€ Machine   ''' + str(int(0)) + '''   VS   ''' + str(int(0)) + '''   Human π </p>'''
|
| 106 |
-
)
|
| 107 |
-
|
| 108 |
gr.Markdown(
|
| 109 |
''' ## Like or Dislike
|
| 110 |
You're given a short review of a movie, book or restaurant.
|
|
@@ -115,7 +106,14 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
|
|
| 115 |
* Step 3: Check the word highlighting to understand how AI made its decision.
|
| 116 |
'''
|
| 117 |
)
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
with gr.Row():
|
| 120 |
with gr.Column(scale=2):
|
| 121 |
chat_button_1 = gr.Button("Click to see AI's rating", size='sm')
|
|
@@ -174,13 +172,6 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
|
|
| 174 |
slider_3_1 = gr.Slider(label="Your guess of author gender: Male(0) ββ> Female(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
|
| 175 |
user_important_mf = gr.Textbox(label="Which words are your guesses based on?", placeholder="Enter words that you think are important for the task")
|
| 176 |
with gr.Column(scale=1):
|
| 177 |
-
gr.Markdown(
|
| 178 |
-
''' ## Today's Scores
|
| 179 |
-
'''
|
| 180 |
-
)
|
| 181 |
-
tot_scores_2 = gr.Markdown(
|
| 182 |
-
''' ### <p style="text-align: center;"> π€ Machine   ''' + str(int(0)) + '''   VS   ''' + str(int(0)) + '''   Human π </p>'''
|
| 183 |
-
)
|
| 184 |
gr.Markdown(
|
| 185 |
''' ## Male or Female
|
| 186 |
|
|
@@ -191,7 +182,14 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
|
|
| 191 |
- Step 2: Check the gender guessed by AI. Who gets the most correct answer wins.
|
| 192 |
- Step 3: Check the word highlighting to understand how AI made its decision.
|
| 193 |
'''
|
| 194 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
|
| 196 |
with gr.Row():
|
| 197 |
with gr.Column(scale=2):
|
|
|
|
| 96 |
user_important = gr.Textbox(label="Which words are your guesses based on?", placeholder="Enter words that you think are important for the task")
|
| 97 |
|
| 98 |
with gr.Column(scale=1):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
gr.Markdown(
|
| 100 |
''' ## Like or Dislike
|
| 101 |
You're given a short review of a movie, book or restaurant.
|
|
|
|
| 106 |
* Step 3: Check the word highlighting to understand how AI made its decision.
|
| 107 |
'''
|
| 108 |
)
|
| 109 |
+
gr.Markdown(
|
| 110 |
+
''' ## Today's Scores
|
| 111 |
+
'''
|
| 112 |
+
)
|
| 113 |
+
|
| 114 |
+
tot_scores_1 = gr.Markdown(
|
| 115 |
+
''' ### <p style="text-align: center;"> π€ Machine   ''' + str(int(0)) + '''   VS   ''' + str(int(0)) + '''   Human π </p>'''
|
| 116 |
+
)
|
| 117 |
with gr.Row():
|
| 118 |
with gr.Column(scale=2):
|
| 119 |
chat_button_1 = gr.Button("Click to see AI's rating", size='sm')
|
|
|
|
| 172 |
slider_3_1 = gr.Slider(label="Your guess of author gender: Male(0) ββ> Female(10)", maximum=10, step=1, container=True, min_width=200, height=80, show_label=True, interactive=True)
|
| 173 |
user_important_mf = gr.Textbox(label="Which words are your guesses based on?", placeholder="Enter words that you think are important for the task")
|
| 174 |
with gr.Column(scale=1):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
gr.Markdown(
|
| 176 |
''' ## Male or Female
|
| 177 |
|
|
|
|
| 182 |
- Step 2: Check the gender guessed by AI. Who gets the most correct answer wins.
|
| 183 |
- Step 3: Check the word highlighting to understand how AI made its decision.
|
| 184 |
'''
|
| 185 |
+
)
|
| 186 |
+
gr.Markdown(
|
| 187 |
+
''' ## Today's Scores
|
| 188 |
+
'''
|
| 189 |
+
)
|
| 190 |
+
tot_scores_2 = gr.Markdown(
|
| 191 |
+
''' ### <p style="text-align: center;"> π€ Machine   ''' + str(int(0)) + '''   VS   ''' + str(int(0)) + '''   Human π </p>'''
|
| 192 |
+
)
|
| 193 |
|
| 194 |
with gr.Row():
|
| 195 |
with gr.Column(scale=2):
|