Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,14 +25,14 @@ LICENSE = """
|
|
25 |
Built with Meta Llama 3
|
26 |
"""
|
27 |
|
28 |
-
|
29 |
<div style="opacity: 0.65;">
|
30 |
<img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/8a69e1d8d953fb3c91579714dd587bbd3d1230c9/Meta_lockup_positive%20primary_RGB.png" style="width:30%;">
|
31 |
<br><b>Meta Llama3-8B Chatbot</b>
|
32 |
</div>
|
33 |
"""
|
34 |
|
35 |
-
|
36 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
37 |
<img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/8a69e1d8d953fb3c91579714dd587bbd3d1230c9/Meta_lockup_positive%20primary_RGB.png" style="width: 80%; max-width: 450px; height: auto; opacity: 0.55; margin-bottom: 10px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
|
38 |
<h1 style="font-size: 28px; margin-bottom: 2px; color: #000; opacity: 0.55;">Meta llama3</h1>
|
@@ -107,7 +107,7 @@ def chat_llama3_8b(message: str,
|
|
107 |
|
108 |
|
109 |
# Gradio block
|
110 |
-
chatbot=gr.Chatbot(height=500
|
111 |
|
112 |
with gr.Blocks(fill_height=True, css=css) as demo:
|
113 |
|
|
|
25 |
Built with Meta Llama 3
|
26 |
"""
|
27 |
|
28 |
+
PLACEHOLDER = """
|
29 |
<div style="opacity: 0.65;">
|
30 |
<img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/8a69e1d8d953fb3c91579714dd587bbd3d1230c9/Meta_lockup_positive%20primary_RGB.png" style="width:30%;">
|
31 |
<br><b>Meta Llama3-8B Chatbot</b>
|
32 |
</div>
|
33 |
"""
|
34 |
|
35 |
+
PLACEHOLDER1 = """
|
36 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
37 |
<img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/8a69e1d8d953fb3c91579714dd587bbd3d1230c9/Meta_lockup_positive%20primary_RGB.png" style="width: 80%; max-width: 450px; height: auto; opacity: 0.55; margin-bottom: 10px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
|
38 |
<h1 style="font-size: 28px; margin-bottom: 2px; color: #000; opacity: 0.55;">Meta llama3</h1>
|
|
|
107 |
|
108 |
|
109 |
# Gradio block
|
110 |
+
chatbot=gr.Chatbot(height=500, placeholder=PLACEHOLDER)
|
111 |
|
112 |
with gr.Blocks(fill_height=True, css=css) as demo:
|
113 |
|