File size: 911 Bytes
87aadd4
b542402
87aadd4
 
 
870d7aa
87aadd4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import streamlit as st

import helper
import os
# Streamlit app title
st.title("Voyage Voicer πŸŒŽπŸš€πŸ–οΈ")

# User input textbox
user_input = st.text_input("Enter your destination :",placeholder='paris')

if st.button("Get Langchain Response"):

    # Use OpenAI to enhance the response
    # response = openai.Completion.create(
    #     engine="text-davinci-002",
    #     prompt=user_input,
    #     max_tokens=50
    # )

    response = helper.generate_restaurant_name_and_items(user_input)

    
    st.subheader(f"Vacation Destination: {response['travel_place']}")
    st.subheader(f"πŸ—ΊοΈ Places to visit: {response['places']}")

    st.subheader('Must try 🍽️:')
    menu_items = response['food'].strip()
    menu_items_list = menu_items.split('\n\n')

    for category in menu_items_list:
        st.write(category)
    
    st.subheader(f"Top πŸ”Ÿ things to do: {response['toDo']}")