Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,11 @@ MODEL_LIST = ["meta-llama/Meta-Llama-3.1-8B-Instruct"]
|
|
| 10 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
| 11 |
MODEL = os.environ.get("MODEL_ID")
|
| 12 |
|
| 13 |
-
TITLE = "<h1><center>Meta-
|
| 14 |
|
| 15 |
PLACEHOLDER = """
|
| 16 |
<center>
|
| 17 |
-
<p>Hi
|
| 18 |
</center>
|
| 19 |
"""
|
| 20 |
|
|
@@ -98,9 +98,8 @@ def stream_chat(
|
|
| 98 |
|
| 99 |
chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
|
| 100 |
|
| 101 |
-
with gr.Blocks(css=CSS, theme="
|
| 102 |
gr.HTML(TITLE)
|
| 103 |
-
gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
|
| 104 |
gr.ChatInterface(
|
| 105 |
fn=stream_chat,
|
| 106 |
chatbot=chatbot,
|
|
|
|
| 10 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
| 11 |
MODEL = os.environ.get("MODEL_ID")
|
| 12 |
|
| 13 |
+
TITLE = "<h1><center>Meta-Llama-3-8B-Instruct</center></h1>"
|
| 14 |
|
| 15 |
PLACEHOLDER = """
|
| 16 |
<center>
|
| 17 |
+
<p>Hi, I'm Llama. Ask me anything.</p>
|
| 18 |
</center>
|
| 19 |
"""
|
| 20 |
|
|
|
|
| 98 |
|
| 99 |
chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
|
| 100 |
|
| 101 |
+
with gr.Blocks(css=CSS, theme="Nymbo/Nymbo_Theme") as demo:
|
| 102 |
gr.HTML(TITLE)
|
|
|
|
| 103 |
gr.ChatInterface(
|
| 104 |
fn=stream_chat,
|
| 105 |
chatbot=chatbot,
|