Spaces:
Runtime error
Runtime error
Download app.py from fibleep/mickiewicz: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/fibleep/mickiewicz/resolve/main/app.py
- Command line
-
hf download hf://spaces/fibleep/mickiewicz/app.py
-
curl -L -o app.py https://huggingface.co/spaces/fibleep/mickiewicz/resolve/main/app.py
278 Bytes
| import gradio as gr | |
| from transformers import pipeline | |
| pipe = pipeline(model="fibleep/mistral-7b-mickiewicz-finetune") | |
| def predict(text): | |
| return pipe(text)[0]["generated_text"] | |
| demo = gr.Interface( | |
| fn=predict, | |
| inputs="text", | |
| outputs="text", | |
| ) | |
| demo.launch() |