Jonas Wiesli commited on
Commit
393576f
1 Parent(s): 67a2db8

adjusting background image, minor size adjustments

Browse files
Files changed (2) hide show
  1. app.py +8 -6
  2. style.css +8 -3
app.py CHANGED
@@ -7,7 +7,8 @@ openai.api_key = os.environ['KEY']
7
  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}#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{" \
@@ -22,13 +23,14 @@ css = "@import url(https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;
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;height:50px!important}#component-48,#component-51{" \
26
  "position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(" \
27
  "-50%);width:50%;height:50vh;padding:80px 20px 20px;background-color:#fff;border:1px solid " \
28
  "#002366}#component-49{position:initial;background-image:url(" \
29
- "\"/img/map.jpg\");background-position:center;background-repeat:no-repeat;background-size:contain}#component" \
30
- "-50,#component-62{position:absolute;top:20px;right:20px;width:44px;height:44px;min-width:44px;min-height:44px" \
31
- "}.output-class.svelte-1s28oeb.svelte-1s28oeb.svelte-1s28oeb,div.svelte-1eq475l{font-weight:400}"
 
32
 
33
  with gr.Blocks(theme=theme, css=css) as iface:
34
  chatbot = []
@@ -127,7 +129,7 @@ with gr.Blocks(theme=theme, css=css) as iface:
127
 
128
  with gr.Row() as chatRow:
129
  with gr.Column(scale=1):
130
- questionCounter = gr.Label(label="Remaining Questions", value="24")
131
  mapButton = gr.Button("Show Floor Plan")
132
  finishButton = gr.Button("Pick a Culprit")
133
  with gr.Column(scale=7):
 
7
  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);#component-3," \
11
+ "#component-4{margin-bottom:10px}.gradio-container{" \
12
  "background-color:#cda678;font-family:Silkscreen;position:relative}#component-1{min-height:75vh}#component-4{" \
13
  "margin-top:auto}.tabs.svelte-btpldm{height:100%}.tabitem{background-color:#002366;border:1px solid " \
14
  "#fff}#component-17,#component-25,#component-33,#component-41,#component-9{" \
 
23
  "content:\"\";width:10px;height:10px;position:absolute;bottom:-1px;border:1px solid var(" \
24
  "--color-border-accent);background-color:var(--color-accent-soft)}.bot.svelte-a99nd8.svelte-a99nd8::before{" \
25
  "left:-10px;border-right:0}.user.svelte-a99nd8.svelte-a99nd8::after{right:-10px;border-left:0}textarea{" \
26
+ "background-color:#fff;min-height:50px!important}#component-48,#component-51{" \
27
  "position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(" \
28
  "-50%);width:50%;height:50vh;padding:80px 20px 20px;background-color:#fff;border:1px solid " \
29
  "#002366}#component-49{position:initial;background-image:url(" \
30
+ "\"https://huggingface.co/spaces/hslu-di/Wiesli_Jonas/resolve/main/img/map.jpg\");background-position:center" \
31
+ ";background-repeat:no-repeat;background-size:contain}#component-50,#component-57{" \
32
+ "position:absolute;top:20px;right:20px;width:44px;height:44px;min-width:44px;min-height:44px}.output-class" \
33
+ ".svelte-1s28oeb.svelte-1s28oeb.svelte-1s28oeb,div.svelte-1eq475l{font-weight:400}"
34
 
35
  with gr.Blocks(theme=theme, css=css) as iface:
36
  chatbot = []
 
129
 
130
  with gr.Row() as chatRow:
131
  with gr.Column(scale=1):
132
+ questionCounter = gr.Label(label="Remaining Questions", value="4")
133
  mapButton = gr.Button("Show Floor Plan")
134
  finishButton = gr.Button("Pick a Culprit")
135
  with gr.Column(scale=7):
style.css CHANGED
@@ -10,8 +10,13 @@
10
  min-height: 75vh;
11
  }
12
 
 
 
 
 
13
  #component-4 {
14
  margin-top: auto;
 
15
  }
16
 
17
  .tabs.svelte-btpldm {
@@ -74,7 +79,7 @@
74
 
75
  textarea {
76
  background-color: #fff;
77
- height: 50px !important;
78
  }
79
 
80
  #component-48, #component-51 {
@@ -91,13 +96,13 @@ textarea {
91
 
92
  #component-49 {
93
  position: initial;
94
- background-image: url(\"/img/map.jpg\");
95
  background-position: center;
96
  background-repeat: no-repeat;
97
  background-size: contain;
98
  }
99
 
100
- #component-50, #component-62 {
101
  position: absolute;
102
  top: 20px;
103
  right: 20px;
 
10
  min-height: 75vh;
11
  }
12
 
13
+ #component-3 {
14
+ margin-bottom: 10px;
15
+ }
16
+
17
  #component-4 {
18
  margin-top: auto;
19
+ margin-bottom: 10px;
20
  }
21
 
22
  .tabs.svelte-btpldm {
 
79
 
80
  textarea {
81
  background-color: #fff;
82
+ min-height: 50px !important;
83
  }
84
 
85
  #component-48, #component-51 {
 
96
 
97
  #component-49 {
98
  position: initial;
99
+ background-image: url(\"https://huggingface.co/spaces/hslu-di/Wiesli_Jonas/resolve/main/img/map.jpg\");
100
  background-position: center;
101
  background-repeat: no-repeat;
102
  background-size: contain;
103
  }
104
 
105
+ #component-50, #component-57 {
106
  position: absolute;
107
  top: 20px;
108
  right: 20px;