Spaces:
Sleeping
Sleeping
Commit
•
cf829a4
1
Parent(s):
410fa27
Update app.py
Browse files
app.py
CHANGED
@@ -101,21 +101,24 @@ def check_input_token_length(message, chat_history, system_prompt):
|
|
101 |
with gr.Blocks(theme='Taithrah/Minimal') as demo:
|
102 |
gr.Markdown(DESCRIPTION)
|
103 |
|
104 |
-
|
105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
with gr.Row():
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
placeholder='Hi, Mistral',
|
111 |
-
scale=10
|
112 |
-
)
|
113 |
-
submit_button = gr.Button('Submit', variant='primary', scale=1, min_width=0)
|
114 |
-
|
115 |
-
with gr.Row():
|
116 |
-
retry_button = gr.Button('Retry', variant='secondary')
|
117 |
-
undo_button = gr.Button('Undo', variant='secondary')
|
118 |
-
clear_button = gr.Button('Clear', variant='secondary')
|
119 |
|
120 |
saved_input = gr.State()
|
121 |
|
|
|
101 |
with gr.Blocks(theme='Taithrah/Minimal') as demo:
|
102 |
gr.Markdown(DESCRIPTION)
|
103 |
|
104 |
+
|
105 |
+
with gr.Column(scale=2):
|
106 |
+
with gr.Group():
|
107 |
+
chatbot = gr.Chatbot(label='Mistral-7B-Instruct-v0.1')
|
108 |
+
with gr.Row():
|
109 |
+
textbox = gr.Textbox(
|
110 |
+
container=False,
|
111 |
+
show_label=False,
|
112 |
+
placeholder='Hi, Mistral',
|
113 |
+
scale=10
|
114 |
+
)
|
115 |
+
submit_button = gr.Button('Submit', variant='primary', scale=1, min_width=0)
|
116 |
+
|
117 |
+
with gr.Column(scale=1):
|
118 |
with gr.Row():
|
119 |
+
retry_button = gr.Button('Retry', variant='secondary')
|
120 |
+
undo_button = gr.Button('Undo', variant='secondary')
|
121 |
+
clear_button = gr.Button('Clear', variant='secondary')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
|
123 |
saved_input = gr.State()
|
124 |
|