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("
|
142 |
|
143 |
with open("prompts.yaml", 'r') as stream:
|
144 |
prompt_templates = yaml.safe_load(stream)
|
@@ -146,7 +146,11 @@ with open("prompts.yaml", 'r') as stream:
|
|
146 |
model = HfApiModel(
|
147 |
max_tokens=16000,
|
148 |
temperature=0.5,
|
149 |
-
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
|
|
|
|
|
|
|
|
150 |
custom_role_conversions=None,
|
151 |
token=os.getenv('hf_token'),
|
152 |
)
|
|
|
138 |
final_answer = FinalAnswerTool()
|
139 |
|
140 |
# Import tool from Hub
|
141 |
+
image_generation_tool = load_tool("m-ric/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)
|
|
|
146 |
model = HfApiModel(
|
147 |
max_tokens=16000,
|
148 |
temperature=0.5,
|
149 |
+
#model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
150 |
+
model_id='deepseek-ai/DeepSeek-R1-Distill-Qwen-32B',
|
151 |
+
#model_id='mistralai/Mistral-7B-Instruct-v0.3',
|
152 |
+
#model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',
|
153 |
+
#model_id="google/gemma-2-9b-it",
|
154 |
custom_role_conversions=None,
|
155 |
token=os.getenv('hf_token'),
|
156 |
)
|