Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -204,7 +204,7 @@ def clear_chat():
|
|
| 204 |
|
| 205 |
# Gradio Interface
|
| 206 |
with gr.Blocks(theme='Hev832/Applio') as iface:
|
| 207 |
-
gr.Image("Image.jpg", width=750, height=
|
| 208 |
gr.Markdown("# Mawared HR Assistant 2.6.4")
|
| 209 |
gr.Markdown('### Instructions')
|
| 210 |
gr.Markdown("Ask a question about MawaredHR and get a detailed answer, if you get an error try again with same prompt, its an Api issue and we are working on it π")
|
|
@@ -222,10 +222,11 @@ with gr.Blocks(theme='Hev832/Applio') as iface:
|
|
| 222 |
placeholder="Type your question here...",
|
| 223 |
show_label=False
|
| 224 |
)
|
| 225 |
-
with gr.Column(scale=
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
|
|
|
| 229 |
|
| 230 |
# Handle both submit events (Enter key and Send button)
|
| 231 |
submit_events = [question_input.submit, send_button.click]
|
|
|
|
| 204 |
|
| 205 |
# Gradio Interface
|
| 206 |
with gr.Blocks(theme='Hev832/Applio') as iface:
|
| 207 |
+
gr.Image("Image.jpg", width=750, height=300, show_label=False, show_download_button=False)
|
| 208 |
gr.Markdown("# Mawared HR Assistant 2.6.4")
|
| 209 |
gr.Markdown('### Instructions')
|
| 210 |
gr.Markdown("Ask a question about MawaredHR and get a detailed answer, if you get an error try again with same prompt, its an Api issue and we are working on it π")
|
|
|
|
| 222 |
placeholder="Type your question here...",
|
| 223 |
show_label=False
|
| 224 |
)
|
| 225 |
+
with gr.Column(scale=4):
|
| 226 |
+
with gr.Row():
|
| 227 |
+
with gr.Column():
|
| 228 |
+
send_button = gr.Button("Send", variant="primary", size="sm")
|
| 229 |
+
clear_button = gr.Button("Clear Chat", size="sm")
|
| 230 |
|
| 231 |
# Handle both submit events (Enter key and Send button)
|
| 232 |
submit_events = [question_input.submit, send_button.click]
|