fix: prefer spaces url over temp url (#1662)

This PR fixes the broken urls in the idefics tests causing CI to fail
This commit is contained in:
drbh 2024-03-21 12:34:25 -04:00 committed by GitHub
parent 6f15ac60b2
commit 4f09c80cd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ async def idefics(idefics_handle):
@pytest.mark.asyncio @pytest.mark.asyncio
async def test_idefics(idefics, response_snapshot): async def test_idefics(idefics, response_snapshot):
response = await idefics.generate( response = await idefics.generate(
"User:![](https://temp-5681.s3.us-west-2.amazonaws.com/chicken_on_money.png)Can you tell me a very short story based on the image?", "User:![](https://huggingface.co/spaces/HuggingFaceM4/idefics_playground/resolve/6af279110440b7ba0c43f6a0be93b9926f062c42/example_images/chicken_on_money.png)Can you tell me a very short story based on the image?",
max_new_tokens=10, max_new_tokens=10,
decoder_input_details=True, decoder_input_details=True,
) )
@ -31,7 +31,7 @@ async def test_idefics(idefics, response_snapshot):
async def test_idefics_load(idefics, generate_load, response_snapshot): async def test_idefics_load(idefics, generate_load, response_snapshot):
responses = await generate_load( responses = await generate_load(
idefics, idefics,
"User:![](https://temp-5681.s3.us-west-2.amazonaws.com/chicken_on_money.png)Can you tell me a very short story based on the image?", "User:![](https://huggingface.co/spaces/HuggingFaceM4/idefics_playground/resolve/6af279110440b7ba0c43f6a0be93b9926f062c42/example_images/chicken_on_money.png)Can you tell me a very short story based on the image?",
max_new_tokens=10, max_new_tokens=10,
n=4, n=4,
) )