Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,14 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 46 |
# Load the final answer tool
|
| 47 |
final_answer = FinalAnswerTool()
|
| 48 |
|
| 49 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
model = HfApiModel(
|
| 51 |
max_tokens=2096,
|
| 52 |
temperature=0.5,
|
|
|
|
| 46 |
# Load the final answer tool
|
| 47 |
final_answer = FinalAnswerTool()
|
| 48 |
|
| 49 |
+
# Define AI_assistant or import it if it's from another module
|
| 50 |
+
AI_assistant = {
|
| 51 |
+
'role1': 'conversion1',
|
| 52 |
+
'role2': 'conversion2'
|
| 53 |
+
# Add other role conversions as needed
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
# Initialize the model with the defined AI_assistant
|
| 57 |
model = HfApiModel(
|
| 58 |
max_tokens=2096,
|
| 59 |
temperature=0.5,
|