Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ print(get_stock_data_baostock('sh.600941'))
|
|
138 |
final_answer = FinalAnswerTool()
|
139 |
|
140 |
# Import tool from Hub
|
141 |
-
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
142 |
|
143 |
with open("prompts.yaml", 'r') as stream:
|
144 |
prompt_templates = yaml.safe_load(stream)
|
|
|
138 |
final_answer = FinalAnswerTool()
|
139 |
|
140 |
# Import tool from Hub
|
141 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True, token=os.getenv('hf_token'))
|
142 |
|
143 |
with open("prompts.yaml", 'r') as stream:
|
144 |
prompt_templates = yaml.safe_load(stream)
|