Giter VIP home page Giter VIP logo

Comments (15)

chih3b avatar chih3b commented on June 8, 2024 1

now it work thank you ! how can i get the latest api always

from outfit-anyone.

ihmily avatar ihmily commented on June 8, 2024

@chih3b

I think you did not use this project, but ran other projects. The official project is problematic, so you should run this project https://github.com/ihmily/outfit-anyone.

I just tried running it, it work normally.

image

from outfit-anyone.

chih3b avatar chih3b commented on June 8, 2024

hello again,thank you for replying.i tried exaclty what you said but instead of giving error immediatly it take maybe about 40 seconds and give me this error:o create a public link, set share=True in launch().
Use Model: AI Model Eva_0
/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py:1222: UserWarning: The Client is treating: "/tmp/gradio/28dbd2deba1e160bfadffbc3675ba4dcac20ca58/Eva_0.png" as a file path. In future versions, this behavior will not happen automatically.

Instead, please provide file path or URLs like this: gradio_client.file("/tmp/gradio/28dbd2deba1e160bfadffbc3675ba4dcac20ca58/Eva_0.png").

Note: to stop treating strings as filepaths unless file() is used, set upload_files=False in Client().
warnings.warn(
/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py:1222: UserWarning: The Client is treating: "/tmp/gradio/9b169678c95ff3006172b2609942fb79b2bccdfa/top222.png" as a file path. In future versions, this behavior will not happen automatically.

Instead, please provide file path or URLs like this: gradio_client.file("/tmp/gradio/9b169678c95ff3006172b2609942fb79b2bccdfa/top222.png").

Note: to stop treating strings as filepaths unless file() is used, set upload_files=False in Client().
warnings.warn(
/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py:1222: UserWarning: The Client is treating: "/tmp/gradio/a11c7042956f88e44c3e89bef30e26a75707b6fc/bottom1.png" as a file path. In future versions, this behavior will not happen automatically.

Instead, please provide file path or URLs like this: gradio_client.file("/tmp/gradio/a11c7042956f88e44c3e89bef30e26a75707b6fc/bottom1.png").

Note: to stop treating strings as filepaths unless file() is used, set upload_files=False in Client().
warnings.warn(
Traceback (most recent call last):
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/queueing.py", line 527, in process_events
response = await route_utils.call_process_api(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/route_utils.py", line 270, in call_process_api
output = await app.get_blocks().process_api(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1847, in process_api
result = await self.call_function(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1433, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/utils.py", line 805, in wrapper
response = f(*args, **kwargs)
File "/home/chiheb/Downloads/outfit-anyone/app.py", line 48, in get_tryon_result
result = client.predict(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 461, in predict
).result()
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 1392, in result
return super().result(timeout=timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 1094, in _inner
predictions = _predict(*data)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 1131, in _predict
raise ValueError(result["error"])
ValueError: None

from outfit-anyone.

chih3b avatar chih3b commented on June 8, 2024

i tried installing the older version of gradio like you did and i got this:
To create a public link, set share=True in launch().
Use Model: AI Model Eva_0
Traceback (most recent call last):
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1561, in process_api
result = await self.call_function(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1179, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/utils.py", line 678, in wrapper
response = f(*args, **kwargs)
File "/home/chiheb/Downloads/outfit-anyone/app.py", line 48, in get_tryon_result
result = client.predict(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 392, in predict
return self.submit(*args, api_name=api_name, fn_index=fn_index).result()
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 1578, in result
return super().result(timeout=timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 970, in _inner
predictions = _predict(*data)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 996, in _predict
result = utils.synchronize_async(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/utils.py", line 808, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore
File "/home/chiheb/.local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync
raise return_result
File "/home/chiheb/.local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner
result[0] = await coro
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 1187, in _sse_fn_v0
return await utils.get_pred_from_sse_v0(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/utils.py", line 381, in get_pred_from_sse_v0
return task.result()
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/utils.py", line 495, in stream_sse_v0
req.raise_for_status()
File "/home/chiheb/.local/lib/python3.10/site-packages/httpx/_models.py", line 761, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '500 Internal Server Error' for url 'https://humanaigc-outfitanyone.hf.space/--replicas/5eyuf/queue/data'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500

from outfit-anyone.

ihmily avatar ihmily commented on June 8, 2024

@chih3b

Check the dependent version you have installed, it needs:

gradio==4.15.0
gradio-client==0.8.1

you can use this

pip install gradio==4.15.0
pip install gradio-client==0.8.1

from outfit-anyone.

chih3b avatar chih3b commented on June 8, 2024

Yeah i installed these versions and i got the last eeror i sent

from outfit-anyone.

ihmily avatar ihmily commented on June 8, 2024

It's strange, it works normally on my machine, I just install.

image

image

web address: https://u207965-8849-3294b279.westb.seetacloud.com:8443/

You can try again, please uninstall first

pip uninstall gradio
pip uninstall gradio-client

install dependencies again

pip install -r requirements.txt
export OA_IP_ADDRESS=https://humanaigc-outfitanyone.hf.space/--replicas/5eyuf/

run

python app.py

If it still doesn't work, it may be your network problem

from outfit-anyone.

ihmily avatar ihmily commented on June 8, 2024

it must be gradio==4.15.0

from outfit-anyone.

ihmily avatar ihmily commented on June 8, 2024

now it work thank you ! how can i get the latest api always

congratulations ! you can access https://huggingface.co/spaces/HumanAIGC/OutfitAnyone , click on the 通过API使用 button at the web bottom to view the latest API

from outfit-anyone.

chih3b avatar chih3b commented on June 8, 2024

when i ran again it gave me this error.but it worked before:hiheb@chiheb-Katana-GF76-11UC:~/Downloads/outfit-anyone$ python3 app.py
API: https://humanaigc-outfitanyone.hf.space/--replicas/5eyuf/
Loaded as API: https://humanaigc-outfitanyone.hf.space/--replicas/5eyuf/
Running on local URL: http://127.0.0.1:6006

Thanks for being a Gradio user! If you have questions or feedback, please join our Discord server and chat with us: https://discord.gg/feTf9x3ZSB
IMPORTANT: You are using gradio version 4.15.0, however version 4.29.0 is available, please upgrade.

To create a public link, set share=True in launch().
Use Model: AI Model Eva_0
Traceback (most recent call last):
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1561, in process_api
result = await self.call_function(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1179, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
return await future
File "/home/chiheb/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio/utils.py", line 678, in wrapper
response = f(*args, **kwargs)
File "/home/chiheb/Downloads/outfit-anyone/app.py", line 48, in get_tryon_result
result = client.predict(
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 392, in predict
return self.submit(*args, api_name=api_name, fn_index=fn_index).result()
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 1578, in result
return super().result(timeout=timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 970, in _inner
predictions = _predict(*data)
File "/home/chiheb/.local/lib/python3.10/site-packages/gradio_client/client.py", line 1010, in _predict
raise ValueError(result["error"])
ValueError: None

from outfit-anyone.

ihmily avatar ihmily commented on June 8, 2024

please reset

export OA_IP_ADDRESS=https://humanaigc-outfitanyone.hf.space/--replicas/5eyuf/

from outfit-anyone.

kaabimariem avatar kaabimariem commented on June 8, 2024

it always says QueueError("Queue is full! Please try again.") .is there another api or something?

from outfit-anyone.

ihmily avatar ihmily commented on June 8, 2024

it always says QueueError("Queue is full! Please try again.") .is there another api or something?

@kaabimariem has it been generated normally ? If it worked properly before, you can try to modify the code https://github.com/ihmily/outfit-anyone/blob/8d5abd6f2c9de1828321257bd1a9b46972205c4c/app.py#L174C5-L174C28

demo.queue(max_size=10)

make max_size=10 bigger

from outfit-anyone.

Jjhy-xiaogao avatar Jjhy-xiaogao commented on June 8, 2024

现在它工作了,谢谢!如何始终获得最新的 API

Can you tell me how you solved the problem after you changed the version of Gradoo for the second time?

from outfit-anyone.

Jjhy-xiaogao avatar Jjhy-xiaogao commented on June 8, 2024

Traceback (most recent call last):
File "E:\jinjiehuayi\venv\lib\site-packages\gradio\queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
File "E:\jinjiehuayi\venv\lib\site-packages\gradio\route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
File "E:\jinjiehuayi\venv\lib\site-packages\gradio\blocks.py", line 1561, in process_api
result = await self.call_function(
File "E:\jinjiehuayi\venv\lib\site-packages\gradio\blocks.py", line 1179, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:\jinjiehuayi\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "E:\jinjiehuayi\venv\lib\site-packages\anyio_backends_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
File "E:\jinjiehuayi\venv\lib\site-packages\anyio_backends_asyncio.py", line 851, in run
result = context.run(func, *args)
File "E:\jinjiehuayi\venv\lib\site-packages\gradio\utils.py", line 678, in wrapper
response = f(*args, **kwargs)
File "E:/jinjiehuayi/outfit-anyone/app.py", line 53, in get_tryon_result
result = client.predict(
File "E:\jinjiehuayi\venv\lib\site-packages\gradio_client\client.py", line 392, in predict
return self.submit(*args, api_name=api_name, fn_index=fn_index).result()
File "E:\jinjiehuayi\venv\lib\site-packages\gradio_client\client.py", line 1578, in result
return super().result(timeout=timeout)
File "C:\Users\高章猛\AppData\Local\Programs\Python\Python38\lib\concurrent\futures_base.py", line 439, in result
return self.__get_result()
File "C:\Users\高章猛\AppData\Local\Programs\Python\Python38\lib\concurrent\futures_base.py", line 388, in __get_result
raise self._exception
File "C:\Users\高章猛\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "E:\jinjiehuayi\venv\lib\site-packages\gradio_client\client.py", line 970, in _inner
predictions = _predict(*data)
File "E:\jinjiehuayi\venv\lib\site-packages\gradio_client\client.py", line 996, in _predict
result = utils.synchronize_async(
File "E:\jinjiehuayi\venv\lib\site-packages\gradio_client\utils.py", line 808, in synchronize_async
return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) # type: ignore
File "E:\jinjiehuayi\venv\lib\site-packages\fsspec\asyn.py", line 103, in sync
raise return_result
File "E:\jinjiehuayi\venv\lib\site-packages\fsspec\asyn.py", line 56, in _runner
result[0] = await coro
File "E:\jinjiehuayi\venv\lib\site-packages\gradio_client\client.py", line 1187, in _sse_fn_v0
return await utils.get_pred_from_sse_v0(
File "E:\jinjiehuayi\venv\lib\site-packages\gradio_client\utils.py", line 381, in get_pred_from_sse_v0
return task.result()
File "E:\jinjiehuayi\venv\lib\site-packages\gradio_client\utils.py", line 447, in stream_sse_v0
async with client.stream(
File "C:\Users\高章猛\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 171, in aenter
return await self.gen.anext()
File "E:\jinjiehuayi\venv\lib\site-packages\httpx_client.py", line 1617, in stream
response = await self.send(
File "E:\jinjiehuayi\venv\lib\site-packages\httpx_client.py", line 1661, in send
response = await self._send_handling_auth(
File "E:\jinjiehuayi\venv\lib\site-packages\httpx_client.py", line 1709, in _send_handling_auth
await auth_flow.aclose()
RuntimeError: cannot reuse already awaited aclose()/athrow()

from outfit-anyone.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.