Spaces:
Runtime error
Runtime error
change resukt type
Browse files
app.py
CHANGED
|
@@ -14,16 +14,13 @@ model = GroqModel('llama-3.1-70b-versatile', api_key='gsk_Ns7Vd5MtXhr3uzyVPf5mWG
|
|
| 14 |
|
| 15 |
async def onClick(vacationType,familyType,duration,purpose,interests):
|
| 16 |
agent = Agent(model,system_prompt=(
|
|
|
|
|
|
|
| 17 |
f"imagine the year is {random_number} and space travel is normal",
|
| 18 |
"Mankind has discovered aliens some are more advance then us some are not",
|
| 19 |
"You are a travel agent and depending on the" + vacationType +"you will list down some destinations",
|
| 20 |
"Also answer based on "+familyType+ "," + duration +","+purpose + "and"+interests,
|
| 21 |
"Be creative made-up different kinds of planets, aliens, atmosphere",
|
| 22 |
-
# "Each recommendation should include:",
|
| 23 |
-
# "1. The planet's name and description of its atmosphere.",
|
| 24 |
-
# "2. Details about the local alien species and their culinary traditions.",
|
| 25 |
-
# "3. A signature dish or food experience.",
|
| 26 |
-
# "4. Key activities or attractions for a traveler interested in food and culture."
|
| 27 |
"Draw inspiration from sources like No Man’s Sky, Hitchhiker’s Guide to the Galaxy, and original creative ideas. Be imaginative, and ensure variety in your suggestions to cater to different tastes.",
|
| 28 |
"Cosmic Myths: Stories from Norse (Yggdrasil), Hindu (Churning of the Ocean), or Aboriginal (Dreamtime) traditions.",
|
| 29 |
"Alien Archetypes: Trickster gods, celestial guardians, or ancient interstellar ruins.",
|
|
@@ -36,7 +33,7 @@ async def onClick(vacationType,familyType,duration,purpose,interests):
|
|
| 36 |
"Visual Arts: Imagery from H.R. Giger (Alien) or Moebius (The Incal).",
|
| 37 |
"Graphic Novels: Saga, Transmetropolitan."
|
| 38 |
),
|
| 39 |
-
result_type = customModel.
|
| 40 |
)
|
| 41 |
result_1 = agent.run_sync(user_prompt="for space travel which planet is the best")
|
| 42 |
result = result_1
|
|
|
|
| 14 |
|
| 15 |
async def onClick(vacationType,familyType,duration,purpose,interests):
|
| 16 |
agent = Agent(model,system_prompt=(
|
| 17 |
+
"You are a highly advanced travel agent specializing in intergalactic vacations",
|
| 18 |
+
"Planet Name: A creative, fictional planet name.",
|
| 19 |
f"imagine the year is {random_number} and space travel is normal",
|
| 20 |
"Mankind has discovered aliens some are more advance then us some are not",
|
| 21 |
"You are a travel agent and depending on the" + vacationType +"you will list down some destinations",
|
| 22 |
"Also answer based on "+familyType+ "," + duration +","+purpose + "and"+interests,
|
| 23 |
"Be creative made-up different kinds of planets, aliens, atmosphere",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
"Draw inspiration from sources like No Man’s Sky, Hitchhiker’s Guide to the Galaxy, and original creative ideas. Be imaginative, and ensure variety in your suggestions to cater to different tastes.",
|
| 25 |
"Cosmic Myths: Stories from Norse (Yggdrasil), Hindu (Churning of the Ocean), or Aboriginal (Dreamtime) traditions.",
|
| 26 |
"Alien Archetypes: Trickster gods, celestial guardians, or ancient interstellar ruins.",
|
|
|
|
| 33 |
"Visual Arts: Imagery from H.R. Giger (Alien) or Moebius (The Incal).",
|
| 34 |
"Graphic Novels: Saga, Transmetropolitan."
|
| 35 |
),
|
| 36 |
+
result_type = customModel.Planet
|
| 37 |
)
|
| 38 |
result_1 = agent.run_sync(user_prompt="for space travel which planet is the best")
|
| 39 |
result = result_1
|