arianna-bis commited on
Commit
4daeee8
1 Parent(s): 447014b

Update app.py

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