Downloads · 30 days
0
HaydenA29/Obsidian
Obsidian is a machine learning model from HaydenA29. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
import gradio as gr from transformers import pipeline chatbot = pipeline("text-generation", model="gpt2") SYSTEMPROMPT = """ You are Obsidian AI, a sharp, intelligent, confident assistant. You speak clearly, casually,…
Downloads · 30 days
0
Access
Public
Updated Apr 12, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 64%
From the Hugging Face model README
import gradio as gr from transformers import pipeline chatbot = pipeline("text-generation", model="gpt2") SYSTEM_PROMPT = """ You are Obsidian AI, a sharp, intelligent, confident assistant. You speak clearly, casually, and helpfully. You specialize in:
def respond(message, history): prompt = SYSTEM_PROMPT + f"\nUser: {message}\nObsidian AI:"
response = chatbot(
prompt,
max_length=120,
do_sample=True,
temperature=0.7,
top_p=0.9
)
text = response[0]["generated_text"].split("Obsidian AI:")[-1]
return text.strip()
demo = gr.ChatInterface( fn=respond, title="🖤 Obsidian AI", description="Your sharp AI assistant for coding, money, and leveling up." )
demo.launch()