Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,7 +155,7 @@ def transcribe(audio):
|
|
| 155 |
return text
|
| 156 |
def construct_index(directory_path):
|
| 157 |
max_input_size = 10000
|
| 158 |
-
num_outputs =
|
| 159 |
max_chunk_overlap = 20000
|
| 160 |
chunk_size_limit = 600000
|
| 161 |
|
|
@@ -178,11 +178,11 @@ def chatbot(input_text):
|
|
| 178 |
return str(response.response)
|
| 179 |
|
| 180 |
|
| 181 |
-
with gr.Blocks(css=css) as demo:
|
| 182 |
realPath = str(os.path.dirname(os.path.realpath(__file__)))
|
| 183 |
-
img1 = gr.Image("images/
|
| 184 |
-
gpt = gr.Chatbot(elem_classes=".wrap.svelte-1o68geq.svelte-1o68geq", elem_id="chatbot").style(container=True)
|
| 185 |
-
msg = gr.Textbox(elem_id="div.svelte-awbtu4",elem_classes="
|
| 186 |
placeholder="Bem vindo ao Hippo Supermercados, em que posso ajuda-lo?",
|
| 187 |
).style(container=False)
|
| 188 |
#clear = gr.Button("Limpar Conversa")
|
|
|
|
| 155 |
return text
|
| 156 |
def construct_index(directory_path):
|
| 157 |
max_input_size = 10000
|
| 158 |
+
num_outputs = 10000
|
| 159 |
max_chunk_overlap = 20000
|
| 160 |
chunk_size_limit = 600000
|
| 161 |
|
|
|
|
| 178 |
return str(response.response)
|
| 179 |
|
| 180 |
|
| 181 |
+
with gr.Blocks(css=css, elem_classes=".app.svelte-ac4rv4.svelte-ac4rv4") as demo:
|
| 182 |
realPath = str(os.path.dirname(os.path.realpath(__file__)))
|
| 183 |
+
img1 = gr.Image("images/imagem teste.png")
|
| 184 |
+
gpt = gr.Chatbot(label="Converse com GPT Super da CD2",elem_classes=".wrap.svelte-1o68geq.svelte-1o68geq", elem_id="chatbot").style(container=True)
|
| 185 |
+
msg = gr.Textbox(elem_id="div.svelte-awbtu4",elem_classes="div.svelte-awbtu4", show_label=False,
|
| 186 |
placeholder="Bem vindo ao Hippo Supermercados, em que posso ajuda-lo?",
|
| 187 |
).style(container=False)
|
| 188 |
#clear = gr.Button("Limpar Conversa")
|