-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain1.py
More file actions
24 lines (18 loc) · 718 Bytes
/
main1.py
File metadata and controls
24 lines (18 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import streamlit as st
from LANGCHAIN_HELPER import generate_restaurant_name_and_items
st.set_page_config(page_title="Restaurant Name Generator", page_icon="🍴")
st.title("🍴 Restaurant Name & Menu Generator")
# Sidebar for cuisine selection
cuisine = st.sidebar.selectbox(
"Pick a cuisine",
("Indian", "Italian", "Mexican", "Arabian", "American", "Chinese", "Thai")
)
# Generate restaurant name + menu
if cuisine:
response = generate_restaurant_name_and_items(cuisine)
# Show Restaurant Name
st.header(f"🏠 {response['restaurant_name']}")
# Show Menu
st.subheader("📋 Menu Items")
for item in response['menu_items']:
st.write(f"- {item}")