Spaces:
Sleeping
Sleeping
Update app.py
Browse files73 unmodified lines747576777879808 unmodified lines8990919293949573 unmodified linesapi_messages.append({"role": "user", "content": system_prompt})try:client = InferenceClient(token=hf_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(f"Status: Loaded `{BIBLE_FILE}` ({len(bible_text)} characters). Answers are grounded strictly to this file.")chatbot = gr.Chatbot(label="Bible Chat", height=400)73 unmodified lines747576777879808 unmodified lines8990919293949573 unmodified linesapi_messages.append({"role": "user", "content": system_prompt})try: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("## 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