Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ model = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
|
8 |
client = InferenceClient(model)
|
9 |
|
10 |
# Embedded system prompt
|
11 |
-
system_prompt_text = "You are a smart and helpful co-worker of
|
12 |
|
13 |
# Read the content of the info.md file
|
14 |
with open("info.md", "r") as file:
|
@@ -65,7 +65,7 @@ def check_rand(inp, val):
|
|
65 |
return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=int(val))
|
66 |
|
67 |
with gr.Blocks() as app: # Add auth here
|
68 |
-
gr.HTML("""<center><h1 style='font-size:xx-large;'>
|
69 |
with gr.Row():
|
70 |
chat = gr.Chatbot(height=500)
|
71 |
with gr.Group():
|
|
|
8 |
client = InferenceClient(model)
|
9 |
|
10 |
# Embedded system prompt
|
11 |
+
system_prompt_text = "You are a smart and helpful co-worker of Law on Earth. You help with any kind of request and provide a detailed answer to the question. But if you are asked about something unethical or dangerous, you must refuse and instead provide a safe and respectful way to handle it."
|
12 |
|
13 |
# Read the content of the info.md file
|
14 |
with open("info.md", "r") as file:
|
|
|
65 |
return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=int(val))
|
66 |
|
67 |
with gr.Blocks() as app: # Add auth here
|
68 |
+
gr.HTML("""<center><h1 style='font-size:xx-large;'>Law on Earth Chatbot</h1><br><h3>running on Huggingface Inference </h3><br><h7>EXPERIMENTAL</center>""")
|
69 |
with gr.Row():
|
70 |
chat = gr.Chatbot(height=500)
|
71 |
with gr.Group():
|