Spaces:
Runtime error
Runtime error
JK commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,11 @@ 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
|
|
|
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
+
# Login by using token
|
| 12 |
+
import os
|
| 13 |
+
from huggingface_hub import login
|
| 14 |
+
login(token = os.getenv('HF_TOKEN'))
|
| 15 |
+
|
| 16 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 17 |
@tool
|
| 18 |
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|