tejasri19 commited on
Commit
dc37459
·
verified ·
1 Parent(s): 23455b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -7,6 +7,12 @@ from tools.final_answer import FinalAnswerTool
7
 
8
  from Gradio_UI import GradioUI
9
 
 
 
 
 
 
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
 
7
 
8
  from Gradio_UI import GradioUI
9
 
10
+ import os
11
+ if not os.getenv("HF_TOKEN"):
12
+ print("Error: HF_TOKEN is not set or is empty.")
13
+ else:
14
+ print("HF_TOKEN is set.")
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