Skip to content

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
Copy Markdown

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")

Copy link
Copy Markdown

@ArshVermaGit ArshVermaGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request does not introduce any meaningful changes or improvements to the repository. Submitting an “Initial commit” without actual file modifications, updates, or contributions does not add value to the project and may create unnecessary noise for maintainers. Open source contributions should aim to solve real problems, improve documentation, enhance functionality, or fix bugs. It is recommended to include clear and tangible changes before opening a PR so that the contribution genuinely benefits the project and respects the maintainers’ review time.

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.

2 participants