Spaces:
Sleeping
Sleeping
Jonas Wiesli
commited on
Commit
•
7f7ba6f
1
Parent(s):
8166508
added names to chat desc, font weight adjustment
Browse files
app.py
CHANGED
@@ -25,13 +25,15 @@ css = "@import url(https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;
|
|
25 |
"background-color:#fff}#component-48,#component-51{position:absolute;left:50%;top:50%;transform:translateX(" \
|
26 |
"-50%) translateY(-50%);width:50%;height:50vh;padding:80px 20px 20px;background-color:#fff;border:1px solid " \
|
27 |
"#002366}#component-49{position:initial}#component-50,#component-62{" \
|
28 |
-
"position:absolute;top:20px;right:20px;width:44px;height:44px;min-width:44px;min-height:44px}"
|
|
|
29 |
|
30 |
with gr.Blocks(theme=theme, css=css) as iface:
|
31 |
chatbot = []
|
32 |
msg = []
|
33 |
accusationButtons = []
|
34 |
culpritId = 3
|
|
|
35 |
roles = ["Security Guard", "Curator", "Researcher", "Conservationist", "Tour Guide"]
|
36 |
initText = ["You are Steve Binner, 31, a security guard for a museum of medieval history. You're absolutely sure "
|
37 |
"that this place is haunted. A month ago, before the spooky stuff started, you were really happy with "
|
@@ -132,7 +134,7 @@ with gr.Blocks(theme=theme, css=css) as iface:
|
|
132 |
with gr.Tab(roles[i]):
|
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="")
|
|
|
25 |
"background-color:#fff}#component-48,#component-51{position:absolute;left:50%;top:50%;transform:translateX(" \
|
26 |
"-50%) translateY(-50%);width:50%;height:50vh;padding:80px 20px 20px;background-color:#fff;border:1px solid " \
|
27 |
"#002366}#component-49{position:initial}#component-50,#component-62{" \
|
28 |
+
"position:absolute;top:20px;right:20px;width:44px;height:44px;min-width:44px;min-height:44px}.output-class" \
|
29 |
+
".svelte-1s28oeb.svelte-1s28oeb.svelte-1s28oeb,div.svelte-1eq475l{font-weight:400}"
|
30 |
|
31 |
with gr.Blocks(theme=theme, css=css) as iface:
|
32 |
chatbot = []
|
33 |
msg = []
|
34 |
accusationButtons = []
|
35 |
culpritId = 3
|
36 |
+
names = ["Steve Binner", "Albert Wright", "Dominic Schwartz", "Brianna Small", "Lyanne Brimes"]
|
37 |
roles = ["Security Guard", "Curator", "Researcher", "Conservationist", "Tour Guide"]
|
38 |
initText = ["You are Steve Binner, 31, a security guard for a museum of medieval history. You're absolutely sure "
|
39 |
"that this place is haunted. A month ago, before the spooky stuff started, you were really happy with "
|
|
|
134 |
with gr.Tab(roles[i]):
|
135 |
with gr.Row():
|
136 |
with gr.Column(scale=9):
|
137 |
+
chatbot.append(gr.Chatbot(label=names[i] + ", " + roles[i]))
|
138 |
msg.append(gr.Textbox(label="", placeholder="Type a question..."))
|
139 |
with gr.Column(scale=3):
|
140 |
characterImage = gr.Label(label="")
|
style.css
CHANGED
@@ -100,4 +100,8 @@ textarea {
|
|
100 |
height: 44px;
|
101 |
min-width: 44px;
|
102 |
min-height: 44px;
|
|
|
|
|
|
|
|
|
103 |
}
|
|
|
100 |
height: 44px;
|
101 |
min-width: 44px;
|
102 |
min-height: 44px;
|
103 |
+
}
|
104 |
+
|
105 |
+
div.svelte-1eq475l, .output-class.svelte-1s28oeb.svelte-1s28oeb.svelte-1s28oeb {
|
106 |
+
font-weight: 400;
|
107 |
}
|