File size: 302 Bytes
7b48403
 
b176f6f
 
 
c2fbd06
 
b176f6f
c2fbd06
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr

with open("system_message.txt", "r") as f:
    system_message = f.read().strip()

def add_system_message(message, history):
    return system_message + "\n\nHuman: " + message

model = gr.load("models/mistralai/Mixtral-8x7B-Instruct-v0.1", inputs=add_system_message)
model.launch()