JRQi commited on
Commit
c42f8fb
1 Parent(s): b96008a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -15
app.py CHANGED
@@ -46,7 +46,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
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 />
@@ -72,7 +72,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
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(
@@ -91,7 +91,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
91
  num_selected_1 = gr.Number(value=0, container=False, show_label=False, visible=False)
92
 
93
  with gr.Row():
94
- with gr.Column():
95
  with gr.Row():
96
  sample_button_en = gr.Button("Click to get a review in English.", size='sm')
97
  # gr.Markdown(''' <p style="text-align: center;"> or </p> ''')
@@ -102,19 +102,20 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
102
 
103
  slider_1_1 = gr.Slider(label="Human: Dislike ——> Like", container=True, min_width=200, height=80, show_label=True, interactive=True)
104
  user_important = gr.Textbox(label="Which words are the guesses based on?", placeholder="Enter words that you think are important.")
 
 
 
 
 
 
105
 
106
- gr.Markdown(
107
- ''' ## Like or Dislike
108
- You're given a short review of a movie, book or restaurant.
109
- The goal of this game is to guess how *positive* the review is, from 0 (=extremely bad) to 100 (=fantastic).
110
-
111
- * Step 1. Get an English or Dutch review and guess the corresponding score.
112
-
113
- * Step 2. Check the score guessed by AI. Who gets the most correct answer wins.
114
-
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():
 
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=1):
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 />
 
72
  #If you could successfully trick the AI into guessing the wrong gender, you get the score.
73
 
74
  )
75
+ with gr.Column(scale=1):
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(
 
91
  num_selected_1 = gr.Number(value=0, container=False, show_label=False, visible=False)
92
 
93
  with gr.Row():
94
+ with gr.Column(scale=2):
95
  with gr.Row():
96
  sample_button_en = gr.Button("Click to get a review in English.", size='sm')
97
  # gr.Markdown(''' <p style="text-align: center;"> or </p> ''')
 
102
 
103
  slider_1_1 = gr.Slider(label="Human: Dislike ——> Like", container=True, min_width=200, height=80, show_label=True, interactive=True)
104
  user_important = gr.Textbox(label="Which words are the guesses based on?", placeholder="Enter words that you think are important.")
105
+
106
+ with gr.Column(scale=1):
107
+ gr.Markdown(
108
+ ''' ## Like or Dislike
109
+ You're given a short review of a movie, book or restaurant.
110
+ The goal of this game is to guess how *positive* the review is, from 0 (=extremely bad) to 100 (=fantastic).
111
 
112
+ * Step 1. Get an English or Dutch review and guess the corresponding score.
113
+
114
+ * Step 2. Check the score guessed by AI. Who gets the most correct answer wins.
115
+
116
+ * Step 3. Check the word highlighting to understand how AI made its decision.
117
+ '''
118
+ )
 
 
 
 
 
119
 
120
  with gr.Row():
121
  with gr.Column():