Spaces:
Running
Running
change model type
Browse files- app.py +1 -1
- planet_model.py +2 -2
app.py
CHANGED
@@ -33,7 +33,7 @@ async def onClick(vacationType,familyType,duration,purpose,interests):
|
|
33 |
"Visual Arts: Imagery from H.R. Giger (Alien) or Moebius (The Incal).",
|
34 |
"Graphic Novels: Saga, Transmetropolitan."
|
35 |
),
|
36 |
-
result_type = customModel.
|
37 |
)
|
38 |
result_1 = agent.run_sync(user_prompt="for space travel which planet is the best")
|
39 |
result = result_1
|
|
|
33 |
"Visual Arts: Imagery from H.R. Giger (Alien) or Moebius (The Incal).",
|
34 |
"Graphic Novels: Saga, Transmetropolitan."
|
35 |
),
|
36 |
+
result_type = customModel.TravelAgency
|
37 |
)
|
38 |
result_1 = agent.run_sync(user_prompt="for space travel which planet is the best")
|
39 |
result = result_1
|
planet_model.py
CHANGED
@@ -4,7 +4,7 @@ from dataclasses import dataclass, field
|
|
4 |
from typing import List, Dict
|
5 |
|
6 |
@dataclass
|
7 |
-
class Planet
|
8 |
name: str
|
9 |
description: str
|
10 |
accommodation: str
|
@@ -12,7 +12,7 @@ class Planet(BaseModel):
|
|
12 |
photography: str
|
13 |
|
14 |
@dataclass
|
15 |
-
class Category
|
16 |
budget_range: str
|
17 |
planets: List[Planet] = field(default_factory=list)
|
18 |
|
|
|
4 |
from typing import List, Dict
|
5 |
|
6 |
@dataclass
|
7 |
+
class Planet:
|
8 |
name: str
|
9 |
description: str
|
10 |
accommodation: str
|
|
|
12 |
photography: str
|
13 |
|
14 |
@dataclass
|
15 |
+
class Category:
|
16 |
budget_range: str
|
17 |
planets: List[Planet] = field(default_factory=list)
|
18 |
|