Spaces:
Runtime error
Runtime error
Download app.py from Darksherma/Verma: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/spaces/Darksherma/Verma/resolve/main/app.py
- Command line
-
hf download hf://spaces/Darksherma/Verma/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Darksherma/Verma/resolve/main/app.py
348 Bytes
| from transformers import pipeline | |
| import gradio as gr | |
| chat = pipeline("text-generation", model="tiiuae/falcon-1b-instruct") # ~1 GB online | |
| def chatfn(msg): | |
| output = chat(msg, max_new_tokens=100)[0]["generated_text"] | |
| return output.replace(msg, "").strip() | |
| gr.ChatInterface(chatfn, title="🧠 DarkVerma MiniGPT", theme="soft").launch() |