Jonas Wiesli commited on
Commit
8166508
·
1 Parent(s): 332919d

css adjustments, added clearer wording

Browse files
Files changed (2) hide show
  1. app.py +10 -9
  2. style.css +2 -1
app.py CHANGED
@@ -8,17 +8,18 @@ theme = gr.themes.Monochrome(
8
  text_size="lg"
9
  )
10
  css = "@import url(https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap);.gradio-container{" \
11
- "background-color:#cda678;font-family:Silkscreen;position:relative}.secondary.svelte-58yet2," \
12
- ".tabitem{background-color:#002366}#component-1{min-height:75vh}#component-4{" \
13
- "margin-top:auto}.tabs.svelte-btpldm{height:100%}.tabitem{border:1px solid #fff}#component-17,#component-25," \
14
- "#component-33,#component-41,#component-9{min-height:70vh;max-height:70vh}#component-10,#component-11," \
15
- "#component-18,#component-19,#component-26,#component-27,#component-34,#component-35,#component-42," \
16
- "#component-43{background-color:#aaa}.message.svelte-a99nd8.svelte-a99nd8{" \
 
17
  "padding:15px;position:relative}.user.svelte-a99nd8.svelte-a99nd8{" \
18
  "margin-right:10px}.bot.svelte-a99nd8.svelte-a99nd8{" \
19
  "padding-left:15px;margin-left:10px}.bot.svelte-a99nd8.svelte-a99nd8::before," \
20
  ".user.svelte-a99nd8.svelte-a99nd8::after{" \
21
- "content:\"\";width:10px;height:10px;position:absolute;bottom:0;border:1px solid var(" \
22
  "--color-border-accent);background-color:var(--color-accent-soft)}.bot.svelte-a99nd8.svelte-a99nd8::before{" \
23
  "left:-10px;border-right:0}.user.svelte-a99nd8.svelte-a99nd8::after{right:-10px;border-left:0}textarea{" \
24
  "background-color:#fff}#component-48,#component-51{position:absolute;left:50%;top:50%;transform:translateX(" \
@@ -124,7 +125,7 @@ with gr.Blocks(theme=theme, css=css) as iface:
124
  with gr.Column(scale=1):
125
  questionCounter = gr.Label(label="Remaining Questions", value="24")
126
  mapButton = gr.Button("Show Floor Plan")
127
- finishButton = gr.Button("Try to Solve")
128
  with gr.Column(scale=7):
129
  i = 0
130
  while i < len(roles):
@@ -132,7 +133,7 @@ with gr.Blocks(theme=theme, css=css) as iface:
132
  with gr.Row():
133
  with gr.Column(scale=9):
134
  chatbot.append(gr.Chatbot(label=roles[i]))
135
- msg.append(gr.Textbox(label=""))
136
  with gr.Column(scale=3):
137
  characterImage = gr.Label(label="")
138
  i += 1
 
8
  text_size="lg"
9
  )
10
  css = "@import url(https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap);.gradio-container{" \
11
+ "background-color:#cda678;font-family:Silkscreen;position:relative}#component-1{min-height:75vh}#component-4{" \
12
+ "margin-top:auto}.tabs.svelte-btpldm{height:100%}.tabitem{background-color:#002366;border:1px solid " \
13
+ "#fff}#component-17,#component-25,#component-33,#component-41,#component-9{" \
14
+ "min-height:70vh;max-height:70vh}.secondary.svelte-58yet2{" \
15
+ "background-color:#002366;font-weight:400}#component-10,#component-11,#component-18,#component-19," \
16
+ "#component-26,#component-27,#component-34,#component-35,#component-42,#component-43{" \
17
+ "background-color:#aaa}.message.svelte-a99nd8.svelte-a99nd8{" \
18
  "padding:15px;position:relative}.user.svelte-a99nd8.svelte-a99nd8{" \
19
  "margin-right:10px}.bot.svelte-a99nd8.svelte-a99nd8{" \
20
  "padding-left:15px;margin-left:10px}.bot.svelte-a99nd8.svelte-a99nd8::before," \
21
  ".user.svelte-a99nd8.svelte-a99nd8::after{" \
22
+ "content:\"\";width:10px;height:10px;position:absolute;bottom:-1px;border:1px solid var(" \
23
  "--color-border-accent);background-color:var(--color-accent-soft)}.bot.svelte-a99nd8.svelte-a99nd8::before{" \
24
  "left:-10px;border-right:0}.user.svelte-a99nd8.svelte-a99nd8::after{right:-10px;border-left:0}textarea{" \
25
  "background-color:#fff}#component-48,#component-51{position:absolute;left:50%;top:50%;transform:translateX(" \
 
125
  with gr.Column(scale=1):
126
  questionCounter = gr.Label(label="Remaining Questions", value="24")
127
  mapButton = gr.Button("Show Floor Plan")
128
+ finishButton = gr.Button("Pick a Culprit")
129
  with gr.Column(scale=7):
130
  i = 0
131
  while i < len(roles):
 
133
  with gr.Row():
134
  with gr.Column(scale=9):
135
  chatbot.append(gr.Chatbot(label=roles[i]))
136
+ msg.append(gr.Textbox(label="", placeholder="Type a question..."))
137
  with gr.Column(scale=3):
138
  characterImage = gr.Label(label="")
139
  i += 1
style.css CHANGED
@@ -30,6 +30,7 @@
30
 
31
  .secondary.svelte-58yet2 {
32
  background-color: #002366;
 
33
  }
34
 
35
  #component-10, #component-11, #component-18, #component-19, #component-26, #component-27, #component-34, #component-35,
@@ -56,7 +57,7 @@
56
  width: 10px;
57
  height: 10px;
58
  position: absolute;
59
- bottom: 0;
60
  border: 1px solid var(--color-border-accent);
61
  background-color: var(--color-accent-soft);
62
  }
 
30
 
31
  .secondary.svelte-58yet2 {
32
  background-color: #002366;
33
+ font-weight: 400;
34
  }
35
 
36
  #component-10, #component-11, #component-18, #component-19, #component-26, #component-27, #component-34, #component-35,
 
57
  width: 10px;
58
  height: 10px;
59
  position: absolute;
60
+ bottom: -1px;
61
  border: 1px solid var(--color-border-accent);
62
  background-color: var(--color-accent-soft);
63
  }