Spaces:
Runtime error
Runtime error
Download app.py from yourAI/create-potential: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/yourAI/create-potential/resolve/main/app.py
- Command line
-
hf download hf://spaces/yourAI/create-potential/app.py
-
curl -L -o app.py https://huggingface.co/spaces/yourAI/create-potential/resolve/main/app.py
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() |