Chatbot / app.py
Poonawala's picture
Update app.py
228d1db verified
raw
history blame contribute delete
508 Bytes
import streamlit as st
from llm_chain import ask_ai
st.title("Poonawala: Medi 🤖|🩺")
llm_name = st.radio(
"Choose your Model",
["4o", "4o-mini"],
)
def generate_response(input_text):
st.info(ask_ai(
query=input_text,
model_name=llm_name
)
)
with st.form("my_form"):
text = st.text_area("Enter text:", "What your duties as a doctor?")
submitted = st.form_submit_button("Submit")
if submitted:
generate_response(text)