Download app.py.txt from VERTEXAS/app.py: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/datasets/VERTEXAS/app.py/resolve/main/app.py.txt
- Command line
-
hf download hf://datasets/VERTEXAS/app.py/app.py.txt
-
curl -L -o app.py.txt https://huggingface.co/datasets/VERTEXAS/app.py/resolve/main/app.py.txt
660 Bytes
| import gradio as gr | |
| from transformers import pipeline | |
| # Load a small but capable model for free hosting | |
| chatbot = pipeline("text-generation", model="EleutherAI/gpt-neo-1.3B") | |
| def ask_ai(message): | |
| response = chatbot(message, max_length=200, do_sample=True, temperature=0.7) | |
| return response[0]["generated_text"] | |
| interface = gr.Interface( | |
| fn=ask_ai, | |
| inputs=gr.Textbox(lines=2, placeholder="Ask about the universe..."), | |
| outputs="text", | |
| title="VERTEXAS INTL AI 🌐", | |
| description="Explore global and cosmic knowledge with open-source AI.", | |
| theme="compact" | |
| ) | |
| if __name__ == "__main__": | |
| interface.launch() | |