Seymour-Visions's picture
Update app.py
c2fbd06 verified
Raw History Blame Contribute Delete
302 Bytes
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()