Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,11 @@ os.environ["OPENAI_API_KEY"] = 'sk-RQJI5MxCOPeBxgvUA1Q1T3BlbkFJ42VYGdxZC4tLv3oOA
|
|
15 |
css = """
|
16 |
#component-2 {position: absolute; bottom: 0; width: 100%;
|
17 |
}
|
|
|
|
|
|
|
|
|
|
|
18 |
.wrap.svelte-6roggh.svelte-6roggh {
|
19 |
padding: var(--block-padding);
|
20 |
height: 100%;
|
@@ -56,18 +61,32 @@ div.svelte-awbtu4 {
|
|
56 |
bottom: 0;
|
57 |
margin-left: -16px;
|
58 |
}
|
|
|
|
|
|
|
|
|
|
|
59 |
.app.svelte-ac4rv4.svelte-ac4rv4 {
|
60 |
max-width: none;
|
61 |
-
background-color: #
|
62 |
}
|
63 |
.app.svelte-ac4rv4.svelte-ac4rv4{max-width:none}
|
64 |
.wrap.svelte-1o68geq.svelte-1o68geq {max-height: none}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
"""
|
66 |
|
67 |
md = """This is some code:
|
68 |
-
|
69 |
hello
|
70 |
-
|
71 |
```py
|
72 |
def fn(x, y, z):
|
73 |
print(x, y, z)
|
@@ -102,6 +121,7 @@ def chatbot(input_text):
|
|
102 |
|
103 |
with gr.Blocks(css=css, elem_classes=".app.svelte-ac4rv4.svelte-ac4rv4") as demo:
|
104 |
realPath = str(os.path.dirname(os.path.realpath(__file__)))
|
|
|
105 |
gpt = gr.Chatbot(label="Converse com a Zoh",elem_classes=".wrap.svelte-1o68geq.svelte-1o68geq", elem_id="chatbot").style(container=True)
|
106 |
msg = gr.Textbox(elem_id="div.svelte-awbtu4",elem_classes="div.svelte-awbtu4", show_label=False,
|
107 |
placeholder="Bem vindo ao Hippo Supermercados, em que posso ajuda-lo?",
|
|
|
15 |
css = """
|
16 |
#component-2 {position: absolute; bottom: 0; width: 100%;
|
17 |
}
|
18 |
+
div.float.svelte-1frtwj3 {
|
19 |
+
position: absolute;
|
20 |
+
opacity: 0;
|
21 |
+
top: var(--block-label-margin);
|
22 |
+
left: var(--block-label-margin);}
|
23 |
.wrap.svelte-6roggh.svelte-6roggh {
|
24 |
padding: var(--block-padding);
|
25 |
height: 100%;
|
|
|
61 |
bottom: 0;
|
62 |
margin-left: -16px;
|
63 |
}
|
64 |
+
img.svelte-ms5bsk {
|
65 |
+
width: var(--size-full);
|
66 |
+
height: 90px;
|
67 |
+
object-fit: contain;
|
68 |
+
}
|
69 |
.app.svelte-ac4rv4.svelte-ac4rv4 {
|
70 |
max-width: none;
|
71 |
+
background-color: #ffffff;
|
72 |
}
|
73 |
.app.svelte-ac4rv4.svelte-ac4rv4{max-width:none}
|
74 |
.wrap.svelte-1o68geq.svelte-1o68geq {max-height: none}
|
75 |
+
.block.svelte-mppz8v {
|
76 |
+
position: relative;
|
77 |
+
margin: 0;
|
78 |
+
box-shadow: var(--block-shadow);
|
79 |
+
border-width: var(--block-border-width);
|
80 |
+
border-color: #dbeafe;
|
81 |
+
border-radius: var(--block-radius);
|
82 |
+
background: #dbeafe;
|
83 |
+
width: 100%;
|
84 |
+
line-height: var(--line-sm);
|
85 |
+
}
|
86 |
"""
|
87 |
|
88 |
md = """This is some code:
|
|
|
89 |
hello
|
|
|
90 |
```py
|
91 |
def fn(x, y, z):
|
92 |
print(x, y, z)
|
|
|
121 |
|
122 |
with gr.Blocks(css=css, elem_classes=".app.svelte-ac4rv4.svelte-ac4rv4") as demo:
|
123 |
realPath = str(os.path.dirname(os.path.realpath(__file__)))
|
124 |
+
img1 = gr.Image("images/imagem teste.png")
|
125 |
gpt = gr.Chatbot(label="Converse com a Zoh",elem_classes=".wrap.svelte-1o68geq.svelte-1o68geq", elem_id="chatbot").style(container=True)
|
126 |
msg = gr.Textbox(elem_id="div.svelte-awbtu4",elem_classes="div.svelte-awbtu4", show_label=False,
|
127 |
placeholder="Bem vindo ao Hippo Supermercados, em que posso ajuda-lo?",
|