Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,12 +10,8 @@ from transformers import pipeline
|
|
10 |
p = pipeline("automatic-speech-recognition")
|
11 |
|
12 |
css = """
|
13 |
-
|
14 |
#component-2 {position: absolute; bottom: 0; width: 100%;
|
15 |
}
|
16 |
-
.gradio-container {
|
17 |
-
background-color: #ffffff;
|
18 |
-
}
|
19 |
div.float.svelte-1frtwj3 {
|
20 |
position: absolute;
|
21 |
opacity: 0;
|
@@ -26,8 +22,11 @@ div.float.svelte-1frtwj3 {
|
|
26 |
height: 100%;
|
27 |
max-height: 100%;
|
28 |
overflow-y: auto;
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
-
|
31 |
div.svelte-1frtwj3 {
|
32 |
display: inline-flex;
|
33 |
align-items: center;
|
@@ -45,80 +44,24 @@ div.svelte-1frtwj3 {
|
|
45 |
width: 100%;
|
46 |
line-height: var(--line-sm);
|
47 |
}
|
48 |
-
|
49 |
-
div.bot.svelte-6roggh.svelte-6roggh {
|
50 |
-
background: #D9A13D;
|
51 |
-
}
|
52 |
-
|
53 |
-
div.bot.svelte-17nzccn.svelte-17nzccn {
|
54 |
-
background: #D9A13D;
|
55 |
-
}
|
56 |
-
|
57 |
-
div.user.svelte-6roggh.svelte-6roggh {
|
58 |
-
background: #5F0000;
|
59 |
-
}
|
60 |
-
|
61 |
-
div.user.svelte-17nzccn.svelte-17nzccn {
|
62 |
-
background: #5F0000;
|
63 |
-
}
|
64 |
-
|
65 |
-
div.textBoxBot {
|
66 |
display: flex;
|
67 |
flex-direction: inherit;
|
68 |
flex-wrap: wrap;
|
69 |
gap: var(--form-gap-width);
|
70 |
box-shadow: var(--block-shadow);
|
71 |
-
border: var(--block-border-width) solid
|
72 |
border-radius: var(--radius-lg);
|
73 |
-
background:
|
74 |
overflow: hidden;
|
75 |
position: fixed;
|
76 |
bottom: 0;
|
77 |
margin-left: -16px;
|
78 |
}
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
flex-wrap: wrap;
|
84 |
-
gap: var(--form-gap-width);
|
85 |
-
box-shadow: var(--block-shadow);
|
86 |
-
border: var(--block-border-width) solid #5f0000;
|
87 |
-
border-radius: var(--radius-lg);
|
88 |
-
background: #ffffff;
|
89 |
-
overflow: hidden;
|
90 |
-
position: fixed;
|
91 |
-
bottom: 0;
|
92 |
-
margin-left: -16px;
|
93 |
-
}
|
94 |
-
|
95 |
-
.svelte-1pie7s6.svelte-1pie7s6 {
|
96 |
-
display: flex;
|
97 |
-
flex-direction: inherit;
|
98 |
-
flex-wrap: wrap;
|
99 |
-
gap: var(--form-gap-width);
|
100 |
-
box-shadow: var(--block-shadow);
|
101 |
-
border: 5px solid #5f0000;
|
102 |
-
border-radius: var(--radius-lg);
|
103 |
-
border-color: #5F0000;
|
104 |
-
background: #ffffff;
|
105 |
-
color: #5F0000;
|
106 |
-
font-size: 16px;
|
107 |
-
overflow: hidden;
|
108 |
-
position: fixed;
|
109 |
-
bottom: 20px; /* Ajuste a distância vertical do rodapé */
|
110 |
-
margin-left: -5px;
|
111 |
-
max-height: 80vh; /* Ajuste a altura máxima da div */
|
112 |
-
max-width: 78%; /* Ajuste a largura máxima da div */
|
113 |
-
}
|
114 |
-
|
115 |
-
|
116 |
-
.img.svelte-ms5bsk {
|
117 |
-
width: 100%;
|
118 |
-
height: 100%;
|
119 |
-
background-color: #ffffff;
|
120 |
-
border: 0px;
|
121 |
-
border-width: 0px;
|
122 |
}
|
123 |
.app.svelte-ac4rv4.svelte-ac4rv4 {
|
124 |
max-width: none;
|
@@ -126,18 +69,18 @@ div.textBoxBot {
|
|
126 |
}
|
127 |
.app.svelte-ac4rv4.svelte-ac4rv4{max-width:none}
|
128 |
.wrap.svelte-1o68geq.svelte-1o68geq {max-height: none}
|
129 |
-
|
130 |
.block.svelte-mppz8v {
|
131 |
position: relative;
|
132 |
margin: 0;
|
133 |
box-shadow: var(--block-shadow);
|
134 |
border-width: var(--block-border-width);
|
135 |
-
border-color: #
|
136 |
border-radius: var(--block-radius);
|
137 |
-
background: #
|
138 |
width: 100%;
|
139 |
line-height: var(--line-sm);
|
140 |
}
|
|
|
141 |
"""
|
142 |
|
143 |
md = """This is some code:
|
|
|
10 |
p = pipeline("automatic-speech-recognition")
|
11 |
|
12 |
css = """
|
|
|
13 |
#component-2 {position: absolute; bottom: 0; width: 100%;
|
14 |
}
|
|
|
|
|
|
|
15 |
div.float.svelte-1frtwj3 {
|
16 |
position: absolute;
|
17 |
opacity: 0;
|
|
|
22 |
height: 100%;
|
23 |
max-height: 100%;
|
24 |
overflow-y: auto;
|
25 |
+
}
|
26 |
+
.bot.svelte-6roggh.svelte-6roggh, .pending.svelte-6roggh.svelte-6roggh {
|
27 |
+
border-color: #759ce9;
|
28 |
+
background: #ffffff;
|
29 |
}
|
|
|
30 |
div.svelte-1frtwj3 {
|
31 |
display: inline-flex;
|
32 |
align-items: center;
|
|
|
44 |
width: 100%;
|
45 |
line-height: var(--line-sm);
|
46 |
}
|
47 |
+
div.svelte-awbtu4 {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
display: flex;
|
49 |
flex-direction: inherit;
|
50 |
flex-wrap: wrap;
|
51 |
gap: var(--form-gap-width);
|
52 |
box-shadow: var(--block-shadow);
|
53 |
+
border: var(--block-border-width) solid var(--border-color-primary);
|
54 |
border-radius: var(--radius-lg);
|
55 |
+
background: var(--border-color-primary);
|
56 |
overflow: hidden;
|
57 |
position: fixed;
|
58 |
bottom: 0;
|
59 |
margin-left: -16px;
|
60 |
}
|
61 |
+
img.svelte-ms5bsk {
|
62 |
+
width: var(--size-full);
|
63 |
+
height: 90px;
|
64 |
+
object-fit: contain;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
}
|
66 |
.app.svelte-ac4rv4.svelte-ac4rv4 {
|
67 |
max-width: none;
|
|
|
69 |
}
|
70 |
.app.svelte-ac4rv4.svelte-ac4rv4{max-width:none}
|
71 |
.wrap.svelte-1o68geq.svelte-1o68geq {max-height: none}
|
|
|
72 |
.block.svelte-mppz8v {
|
73 |
position: relative;
|
74 |
margin: 0;
|
75 |
box-shadow: var(--block-shadow);
|
76 |
border-width: var(--block-border-width);
|
77 |
+
border-color: #dbeafe;
|
78 |
border-radius: var(--block-radius);
|
79 |
+
background: #dbeafe;
|
80 |
width: 100%;
|
81 |
line-height: var(--line-sm);
|
82 |
}
|
83 |
+
|
84 |
"""
|
85 |
|
86 |
md = """This is some code:
|