Mattral commited on
Commit
c3039c1
1 Parent(s): c82cfaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 Thailand based multi-national company PTT, and PTTEP. 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 provide a safe and respectful way to handle that."
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;'>PTT 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():
 
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():