Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,13 @@ import time
|
|
4 |
import requests
|
5 |
import pytz
|
6 |
import yaml
|
|
|
7 |
from tools.final_answer import FinalAnswerTool
|
8 |
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
|
|
|
|
11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
12 |
@tool
|
13 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
@@ -148,4 +151,7 @@ agent = CodeAgent(
|
|
148 |
# GradioUI(agent).launch()
|
149 |
|
150 |
# Change to your username and repo name
|
151 |
-
agent.push_to_hub(
|
|
|
|
|
|
|
|
4 |
import requests
|
5 |
import pytz
|
6 |
import yaml
|
7 |
+
import os
|
8 |
from tools.final_answer import FinalAnswerTool
|
9 |
|
10 |
from Gradio_UI import GradioUI
|
11 |
|
12 |
+
hf_token = os.environ.get("HF_TOKEN")
|
13 |
+
|
14 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
15 |
@tool
|
16 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
|
|
151 |
# GradioUI(agent).launch()
|
152 |
|
153 |
# Change to your username and repo name
|
154 |
+
agent.push_to_hub(repo_id="jamesbright/party_organiser",
|
155 |
+
commit_message="Upload weather agent",
|
156 |
+
private=False,
|
157 |
+
token= hf_token)
|