Spaces:
Runtime error
Runtime error
Download app.py from Syksteaz/mixtral-test: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/Syksteaz/mixtral-test/resolve/main/app.py
- Command line
-
hf download hf://spaces/Syksteaz/mixtral-test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Syksteaz/mixtral-test/resolve/main/app.py
375 Bytes
| # Use a pipeline as a high-level helper | |
| from transformers import pipeline | |
| import gradio as gr | |
| pipe = pipeline("text-generation", model="mistralai/Mixtral-8x7B-Instruct-v0.1") | |
| def generate(input_text): | |
| generated_text = pipe(input_text) | |
| return generated_text | |
| iface = gr.Interface(fn=generate, inputs=gr.Text(label='Your prompt here'), outputs="text") | |
| iface.launch() |