Update app.py
Browse files
app.py
CHANGED
@@ -51,6 +51,14 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
51 |
|
52 |
|
53 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
# Campo para configuração do contexto inicial
|
55 |
initial_context_message = gr.Textbox(
|
56 |
min_width=128,
|
@@ -93,8 +101,8 @@ with gr.Blocks() as demo:
|
|
93 |
# Interface de chat com as entradas adicionais visíveis
|
94 |
chat_interface = gr.Interface(
|
95 |
fn=respond,
|
96 |
-
inputs=[character, initial_context_message, max_tokens, temperature, top_p],
|
97 |
-
outputs=
|
98 |
title="King B",
|
99 |
description="Story",
|
100 |
)
|
|
|
51 |
|
52 |
|
53 |
with gr.Blocks() as demo:
|
54 |
+
# Input
|
55 |
+
chat_input = gr.Textbox(
|
56 |
+
min_width=1,
|
57 |
+
max_length=2048,
|
58 |
+
value="",
|
59 |
+
submit_btn=true,
|
60 |
+
label="Action"
|
61 |
+
)
|
62 |
# Campo para configuração do contexto inicial
|
63 |
initial_context_message = gr.Textbox(
|
64 |
min_width=128,
|
|
|
101 |
# Interface de chat com as entradas adicionais visíveis
|
102 |
chat_interface = gr.Interface(
|
103 |
fn=respond,
|
104 |
+
inputs=[chat_input, character, initial_context_message, max_tokens, temperature, top_p],
|
105 |
+
outputs="label",
|
106 |
title="King B",
|
107 |
description="Story",
|
108 |
)
|