sarim commited on
Commit
0ddce65
·
1 Parent(s): 0dfc915

update api key

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import streamlit as st
2
  from pydantic_ai import Agent
3
  from pydantic_ai.models.groq import GroqModel
@@ -8,7 +9,7 @@ from typing import List, Dict
8
  import constants
9
  import os
10
 
11
- api_key = os.getenv("API_KEY")
12
 
13
 
14
  random_number = random.randint(3000, 10000)
@@ -42,8 +43,8 @@ async def onClick(vacationType,familyType,duration,purpose,interests):
42
  "A signature dish or food experience.",
43
  "Key activities or attractions for a traveler interested in food and culture."
44
  ),
45
- #result_type = List[customModel.TravelAgency]
46
  )
 
47
  result_1 = agent.run_sync(user_prompt="for space travel which planet is the best")
48
  result = result_1
49
  st.caption(result.data)
@@ -74,7 +75,7 @@ async def main():
74
  duration = st.selectbox(label="Duration of Trip",options=("5 days","2 weeks","1 month","more then 1 month"))
75
  purpose = st.selectbox(label="Purpose of Travel",options=("Honeymoon","anniversary","family vacation","corporate retreat","vacation","Food tour"))
76
  interests = st.selectbox(label="Special Interestl",options=("Photography","gastronomy","wildlife","art"))
77
-
78
 
79
 
80
  if st.button("Search"):
 
1
+ from pydantic_ai.result import ResultData
2
  import streamlit as st
3
  from pydantic_ai import Agent
4
  from pydantic_ai.models.groq import GroqModel
 
9
  import constants
10
  import os
11
 
12
+ api_key = os.getenv("api_key")
13
 
14
 
15
  random_number = random.randint(3000, 10000)
 
43
  "A signature dish or food experience.",
44
  "Key activities or attractions for a traveler interested in food and culture."
45
  ),
 
46
  )
47
+
48
  result_1 = agent.run_sync(user_prompt="for space travel which planet is the best")
49
  result = result_1
50
  st.caption(result.data)
 
75
  duration = st.selectbox(label="Duration of Trip",options=("5 days","2 weeks","1 month","more then 1 month"))
76
  purpose = st.selectbox(label="Purpose of Travel",options=("Honeymoon","anniversary","family vacation","corporate retreat","vacation","Food tour"))
77
  interests = st.selectbox(label="Special Interestl",options=("Photography","gastronomy","wildlife","art"))
78
+
79
 
80
 
81
  if st.button("Search"):