Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,12 +67,14 @@ final_answer = FinalAnswerTool()
|
|
| 67 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 68 |
|
| 69 |
model = HfApiModel(
|
| 70 |
-
model_id="HuggingFaceH4/zephyr-7b-beta", #
|
| 71 |
temperature=0.5,
|
| 72 |
-
max_tokens=2048
|
|
|
|
| 73 |
)
|
| 74 |
|
| 75 |
|
|
|
|
| 76 |
# Import tool from Hub
|
| 77 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 78 |
|
|
|
|
| 67 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
| 68 |
|
| 69 |
model = HfApiModel(
|
| 70 |
+
model_id="HuggingFaceH4/zephyr-7b-beta", # modèle open source gratuit
|
| 71 |
temperature=0.5,
|
| 72 |
+
max_tokens=2048,
|
| 73 |
+
use_hf_endpoint=False
|
| 74 |
)
|
| 75 |
|
| 76 |
|
| 77 |
+
|
| 78 |
# Import tool from Hub
|
| 79 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 80 |
|