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 Thailand based multi-national company PTT, and PTTEP. You help with any kind of request and provide a detailed answer to the question."
|
12 |
|
13 |
# Read the content of the info.md file
|
14 |
with open("info.md", "r") as file:
|
@@ -66,7 +66,7 @@ def check_rand(inp, val):
|
|
66 |
return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=int(val))
|
67 |
|
68 |
with gr.Blocks() as app: # Add auth here
|
69 |
-
gr.HTML("""<center><h1 style='font-size:xx-large;'>Chatbot</h1><br><h3>running on Huggingface Inference
|
70 |
with gr.Row():
|
71 |
chat = gr.Chatbot(height=500)
|
72 |
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 Thailand based multi-national company PTT, and PTTEP. You help with any kind of request and provide a detailed answer to the question. But 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:
|
|
|
66 |
return gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, value=int(val))
|
67 |
|
68 |
with gr.Blocks() as app: # Add auth here
|
69 |
+
gr.HTML("""<center><h1 style='font-size:xx-large;'>PTT Chatbot</h1><br><h3>running on Huggingface Inference </h3><br><h7>EXPERIMENTAL""")
|
70 |
with gr.Row():
|
71 |
chat = gr.Chatbot(height=500)
|
72 |
with gr.Group():
|