Spaces:
Runtime error
Runtime error
adnansami1992sami
commited on
Commit
•
873b86f
1
Parent(s):
a47f151
Update app.py
Browse files
app.py
CHANGED
@@ -53,25 +53,12 @@ def chat(client: Client):
|
|
53 |
with gr.Row():
|
54 |
chatbot = gr.Chatbot(elem_id="chatbot")
|
55 |
with gr.Row():
|
56 |
-
|
57 |
placeholder=f"Hello {BOT_NAME} !!",
|
58 |
label="Type your message here",
|
59 |
max_lines=3,
|
60 |
)
|
61 |
-
enter_button = gr.Button("Enter")
|
62 |
|
63 |
-
def on_enter_click():
|
64 |
-
message = input_text.value.strip()
|
65 |
-
input_text.update(value="")
|
66 |
-
input_text.submit(
|
67 |
-
run_chat,
|
68 |
-
[message, chatbot, instructions, temperature, top_p],
|
69 |
-
outputs=[chatbot],
|
70 |
-
show_progress=False,
|
71 |
-
)
|
72 |
-
enter_button.click(on_enter_click)
|
73 |
-
|
74 |
-
inputs = gr.Row(input_text, enter_button)
|
75 |
|
76 |
with gr.Row(elem_id="button_container"):
|
77 |
with gr.Column():
|
|
|
53 |
with gr.Row():
|
54 |
chatbot = gr.Chatbot(elem_id="chatbot")
|
55 |
with gr.Row():
|
56 |
+
inputs= gr.Textbox(
|
57 |
placeholder=f"Hello {BOT_NAME} !!",
|
58 |
label="Type your message here",
|
59 |
max_lines=3,
|
60 |
)
|
|
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
with gr.Row(elem_id="button_container"):
|
64 |
with gr.Column():
|