Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,6 +44,13 @@ agent = CodeAgent(
|
|
| 44 |
description="Weather info agent",
|
| 45 |
model="gpt-3.5-turbo" # or whatever model is supported
|
| 46 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
demo.launch(ssr=False)
|
| 48 |
|
| 49 |
@tool
|
|
|
|
| 44 |
description="Weather info agent",
|
| 45 |
model="gpt-3.5-turbo" # or whatever model is supported
|
| 46 |
)
|
| 47 |
+
demo = GradioUI(
|
| 48 |
+
fn=get_weather,
|
| 49 |
+
inputs="text",
|
| 50 |
+
output="text",
|
| 51 |
+
title="DTS Weather Tool",
|
| 52 |
+
description="Enter a city to get current weather"
|
| 53 |
+
)
|
| 54 |
demo.launch(ssr=False)
|
| 55 |
|
| 56 |
@tool
|