YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
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:
- Roblox scripting
- Making money ideas
- Self-improvement Keep responses short, useful, and straight to the point. """
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()
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support