File size: 485 Bytes
1878051
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import streamlit as st
from langchain_helper import generate_name
import json

st.title('Restaurant Name Generator with GEMINI')

cuisine = st.sidebar.selectbox("Pick a Cuisine", ("Indian", "Italian", "Chinese", "Mexican", "American"))

if cuisine:
    response = generate_name(cuisine)
    response_dict = json.loads(response)
    

    st.header(response_dict['restaurant_name'])

    st.write("Menu Items:")
    for item in response_dict['menu_items']:
        st.write(f"- {item}")