JRQi commited on
Commit
1454b48
1 Parent(s): b0438f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -19
app.py CHANGED
@@ -40,39 +40,36 @@ with gr.Blocks(theme=gr.themes.Default(text_size=gr.themes.sizes.text_md)) as de
40
  pre_load_2 = pipeline("text-classification", model='DTAI-KULeuven/robbert-v2-dutch-sentiment')
41
  pre_load_3 = pipeline("text-classification", model='distilbert-base-uncased-finetuned-sst-2-english')
42
  pre_load_4 = pipeline("text-classification", model="padmajabfrl/Gender-Classification")
 
 
 
 
43
 
44
  with gr.Row():
45
- num1 = gr.Number(value=0, container=False, show_label=False, visible=False)
46
- num2 = gr.Number(value=0, container=False, show_label=False, visible=False)
47
- num3 = gr.Number(value=0, container=False, show_label=False, visible=False)
48
- num4 = gr.Number(value=0, container=False, show_label=False, visible=False)
49
-
50
- with gr.Row():
51
  placeholder = gr.Markdown(
52
  ''' ## Welcome to the Language Model Explanation Challenge! <br />
53
  #### Language Models 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 />
55
  #### Choose one of the tasks below ... and start to play!'''
56
  )
57
- with gr.Row():
58
  # gr.Markdown(
59
  # '''
60
  # ### Built by [ADD GroNLP logo here]
61
  # '''
62
  # )
63
  gr.Image('logo.png', height=230, width=600, min_width=80, show_label=False, show_share_button=False, interactive=False, container=False)
64
- with gr.Column():
65
- with gr.Row():
66
- placeholder = gr.Markdown(
67
- '''
68
- Are *humans* or *machines* better at understanding language?<br />
69
- &rarr; Play a game against AI to find out!<br />
70
- Does AI think like you or not at all?<br />
71
- &rarr; Check out the color highlighting to see which parts of the sentence are more important for the machine.<br />
72
- Can you outsmart the AI?<br />
73
- &rarr; Try to write a text that will trick it into the wrong decision<br /><br />
74
- '''
75
- )
76
 
77
  with gr.Tab("Like or Dislike"):
78
  text_en = gr.Textbox(label="", value="en", visible=False)
 
40
  pre_load_2 = pipeline("text-classification", model='DTAI-KULeuven/robbert-v2-dutch-sentiment')
41
  pre_load_3 = pipeline("text-classification", model='distilbert-base-uncased-finetuned-sst-2-english')
42
  pre_load_4 = pipeline("text-classification", model="padmajabfrl/Gender-Classification")
43
+ num1 = gr.Number(value=0, container=False, show_label=False, visible=False)
44
+ num2 = gr.Number(value=0, container=False, show_label=False, visible=False)
45
+ num3 = gr.Number(value=0, container=False, show_label=False, visible=False)
46
+ num4 = gr.Number(value=0, container=False, show_label=False, visible=False)
47
 
48
  with gr.Row():
49
+ with gr.Column():
 
 
 
 
 
50
  placeholder = gr.Markdown(
51
  ''' ## Welcome to the Language Model Explanation Challenge! <br />
52
  #### Language Models 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 />
54
  #### Choose one of the tasks below ... and start to play!'''
55
  )
56
+ with gr.Column():
57
  # gr.Markdown(
58
  # '''
59
  # ### Built by [ADD GroNLP logo here]
60
  # '''
61
  # )
62
  gr.Image('logo.png', height=230, width=600, min_width=80, show_label=False, show_share_button=False, interactive=False, container=False)
63
+ placeholder = gr.Markdown(
64
+ '''
65
+ Are *humans* or *machines* better at understanding language?<br />
66
+ &rarr; Play a game against AI to find out!<br />
67
+ Does AI think like you or not at all?<br />
68
+ &rarr; Check out the color highlighting to see which parts of the sentence are more important for the machine.<br />
69
+ Can you outsmart the AI?<br />
70
+ &rarr; Try to write a text that will trick it into the wrong decision<br /><br />
71
+ '''
72
+ )
 
 
73
 
74
  with gr.Tab("Like or Dislike"):
75
  text_en = gr.Textbox(label="", value="en", visible=False)