Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,34 +45,35 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
|
|
| 45 |
with gr.Row():
|
| 46 |
num1 = gr.Number(value=0, container=False, show_label=False, visible=False)
|
| 47 |
num2 = gr.Number(value=0, container=False, show_label=False, visible=False)
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
|
|
|
| 76 |
|
| 77 |
gr.Markdown(
|
| 78 |
''' ## Today's Scores
|
|
|
|
| 45 |
with gr.Row():
|
| 46 |
num1 = gr.Number(value=0, container=False, show_label=False, visible=False)
|
| 47 |
num2 = gr.Number(value=0, container=False, show_label=False, visible=False)
|
| 48 |
+
|
| 49 |
+
with gr.Column(scale=3):
|
| 50 |
+
placeholder = gr.Markdown(
|
| 51 |
+
''' ## Welcome to the Language Model Explanation Challenge!
|
| 52 |
+
Language Models (LMs) are powerful AI tools to understand and generate human language.<br />
|
| 53 |
+
However, they sometimes make mistakes... and it's hard to know why!<br /><br />
|
| 54 |
+
Are *humans* or *machines* better at understanding language?<br />
|
| 55 |
+
→ Play a game against AI to find out!<br /><br />
|
| 56 |
+
Does AI think like you or not at all?<br />
|
| 57 |
+
→ Check out the color highlighting to see which parts of the sentence are more important for the machine.<br /><br />
|
| 58 |
+
|
| 59 |
+
Can you outsmart the AI?<br />
|
| 60 |
+
→ Try to write a text that will trick it into the wrong decision<br /><br />
|
| 61 |
+
|
| 62 |
+
Choose one of the three tasks below ... and start to play!
|
| 63 |
+
'''
|
| 64 |
+
|
| 65 |
+
#* **Like or Dislike** provides a movie/food/book review. You (and AI) are required to guess its score.
|
| 66 |
+
#The one with the correct or close answer win the score.
|
| 67 |
+
|
| 68 |
+
#* **Human or Machine** provides a paragraph. You (and AI) need to judge if it is written by humans or machines.
|
| 69 |
+
#The one with the correct or close answer win the score.
|
| 70 |
+
|
| 71 |
+
#* **Man or Woman** allows you to write a text.
|
| 72 |
+
#If you could successfully trick the AI into guessing the wrong gender, you get the score.
|
| 73 |
+
|
| 74 |
+
)
|
| 75 |
+
with gr.Column(scale=2):
|
| 76 |
+
logo = gr.Image('logo.png', height=230, width=600, min_width=80, show_label=False, show_share_button=False, interactive=False, container=False)
|
| 77 |
|
| 78 |
gr.Markdown(
|
| 79 |
''' ## Today's Scores
|