Spaces:
Running
Running
random year
Browse files
app.py
CHANGED
|
@@ -2,12 +2,14 @@ import streamlit as st
|
|
| 2 |
from pydantic_ai import Agent
|
| 3 |
from pydantic_ai.models.groq import GroqModel
|
| 4 |
import nest_asyncio
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
|
|
|
|
| 8 |
model = GroqModel('llama-3.1-70b-versatile', api_key='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')
|
| 9 |
agent = Agent(model,system_prompt=(
|
| 10 |
-
"
|
| 11 |
"Mankind has discovered aliens some are more advance then us some are not",
|
| 12 |
"You are a travel agent and depending on the budget low, medium and high you will list down some destinations",
|
| 13 |
|
|
|
|
| 2 |
from pydantic_ai import Agent
|
| 3 |
from pydantic_ai.models.groq import GroqModel
|
| 4 |
import nest_asyncio
|
| 5 |
+
import random
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
+
random_number = random.randint(3000, 10000)
|
| 10 |
model = GroqModel('llama-3.1-70b-versatile', api_key='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')
|
| 11 |
agent = Agent(model,system_prompt=(
|
| 12 |
+
f"imagine the year is {random_number} and space travel is normal",
|
| 13 |
"Mankind has discovered aliens some are more advance then us some are not",
|
| 14 |
"You are a travel agent and depending on the budget low, medium and high you will list down some destinations",
|
| 15 |
|