Skip to content

Comments

Initial commit#173

Open
hafizmajid1dir-creator wants to merge 1 commit intomicrosoft:masterfrom
hafizmajid1dir-creator:codespace-probable-rotary-phone-97vr9v9p6rwq2999
Open

Initial commit#173
hafizmajid1dir-creator wants to merge 1 commit intomicrosoft:masterfrom
hafizmajid1dir-creator:codespace-probable-rotary-phone-97vr9v9p6rwq2999

Conversation

@hafizmajid1dir-creator
Copy link

import streamlit as st

Page Configuration

st.set_page_config(page_title="AI Hub - Cheese Badi", layout="wide")

st.title("🚀 Cheese Badi - All-in-One AI Models")
st.markdown("---")

Sidebar for Model Selection

st.sidebar.title("AI Models Selector")
model_choice = st.sidebar.selectbox(
"Select an AI Model:",
["OpenAI GPT-4o", "Google Gemini 1.5 Pro", "Anthropic Claude 3.5", "Meta Llama 3"]
)

st.sidebar.info(f"Currently using: {model_choice}")

Chat Interface

st.subheader(f"Chat with {model_choice}")

if "messages" not in st.session_state:
st.session_state.messages = []

Display chat history

for message in st.session_state.messages:
with st.chat_message(message["role"]):
st.markdown(message["content"])

User Input

if prompt := st.chat_input("Apna sawal yahan likhen..."):
# Add user message to history
st.session_state.messages.append({"role": "user", "content": prompt})
with st.chat_message("user"):
st.markdown(prompt)

# Simulated AI Response (Yahan actual API call hogi)
with st.chat_message("assistant"):
    response = f"Salam! Main **{model_choice}** hoon. Aapne pucha: '{prompt}'. Filhal main demo mode mein hoon."
    st.markdown(response)
    st.session_state.messages.append({"role": "assistant", "content": response})

Footer

st.markdown("---")
st.caption("Powered by Cheese Badi AI Framework")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant