Spaces:
Sleeping
Sleeping
Update app.py
Browse files73 unmodified lines74757677777879808 unmodified lines899091929293949573 unmodified lines api_messages.append({"role": "user", "content": system_prompt})
try: client = InferenceClient(token=hf_token, model="openai/gpt-oss-20b") client = InferenceClient(token=hf_token.token, model="openai/gpt-oss-20b") response = client.chat_completion( messages=api_messages, max_tokens=max_tokens,8 unmodified lines
# Gradio Interfacewith gr.Blocks(theme=gr.themes.Soft()) as demo: gr.Markdown("## 📖 Accurate Bible Chatbot") gr.Markdown("## Christian Chatbot") gr.Markdown(f"Status: Loaded `{BIBLE_FILE}` ({len(bible_text)} characters). Answers are grounded strictly to this file.") chatbot = gr.Chatbot(label="Bible Chat", height=400)app.py+2-2