Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,11 +50,14 @@ def respond(message, chat_history):
|
|
50 |
return "", chat_history
|
51 |
|
52 |
with gr.Blocks() as app:
|
53 |
-
|
54 |
chatbot = gr.Chatbot()
|
55 |
msg = gr.Textbox("Input")
|
56 |
-
|
|
|
|
|
57 |
|
|
|
58 |
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
59 |
|
60 |
|
|
|
50 |
return "", chat_history
|
51 |
|
52 |
with gr.Blocks() as app:
|
53 |
+
gr.Markdowon("""<h1><center>Starcoder 1b-sft Demo<br><h3><a href src= 'https://huggingface.co/abacaj/starcoderbase-1b-sft'>https://huggingface.co/abacaj/starcoderbase-1b-sft</a>""")
|
54 |
chatbot = gr.Chatbot()
|
55 |
msg = gr.Textbox("Input")
|
56 |
+
with gr.Row():
|
57 |
+
sub_btn = gr.Button("Submit")
|
58 |
+
clear = gr.ClearButton([msg, chatbot])
|
59 |
|
60 |
+
sub_btn.click(respond, [msg,chatbot],[msg,chatbot])
|
61 |
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
62 |
|
63 |
|