Spaces:
Running
model is behind OA_IP_ADDRESS
its still not public
What value do we need to provide for OA_IP_ADDRESS
Seems like that is an address of API server, used for this demo. Waiting for the release news
You don’t need it, it’s their app. To set up your app you need to use API docs, link was in the bottom. You can also use my public github repo to fork, give me a star please. DM if you need help [email protected]
Hi @matthewdi , could you give us more hint?
I've got this error
OutfitAnyone/app.py", line 61, in get_tryon_result
url = os.environ['OA_IP_ADDRESS']
~~~~~~~~~~^^^^^^^^^^^^^^^^^
https://github.com/matthew-heartful/Tryon this is the github project of @matthewdi that is using and api call to https://humanaigc-outfitanyone.hf.space/--replicas/mms7m/get_tryon_result, but you cannot simply of course move it to url = https://human... but you need to use the gradio client
最新可用 https://github.com/ihmily/outfit-anyone 修复版
The latest available fixed version can be found at https://github.com/ihmily/outfit-anyone
最新可用 https://github.com/ihmily/outfit-anyone 修复版
The latest available fixed version can be found at https://github.com/ihmily/outfit-anyone
you've literally just cloned the repo . and are linking back to the same api 😂
Traceback (most recent call last):
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/queueing.py", line 527, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/route_utils.py", line 270, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/blocks.py", line 1847, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/blocks.py", line 1433, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/utils.py", line 805, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/outfit-anyone/app.py", line 48, in get_tryon_result
result = client.predict(
^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio_client/client.py", line 461, in predict
).result()
^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio_client/client.py", line 1392, in result
return super().result(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio_client/client.py", line 1094, in _inner
predictions = _predict(*data)
^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio_client/client.py", line 1131, in _predict
raise ValueError(result["error"])
ValueError: None
I got error , ..So is this repo can be run locally or not .
Traceback (most recent call last):
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/queueing.py", line 527, in process_events
response = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/route_utils.py", line 270, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/blocks.py", line 1847, in process_api
result = await self.call_function(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/blocks.py", line 1433, in call_function
prediction = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio/utils.py", line 805, in wrapper
response = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/outfit-anyone/app.py", line 48, in get_tryon_result
result = client.predict(
^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio_client/client.py", line 461, in predict
).result()
^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio_client/client.py", line 1392, in result
return super().result(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio_client/client.py", line 1094, in _inner
predictions = _predict(*data)
^^^^^^^^^^^^^^^
File "/home/lenovo/Documents/hf/hf/lib/python3.11/site-packages/gradio_client/client.py", line 1131, in _predict
raise ValueError(result["error"])
ValueError: NoneI got error , ..So is this repo can be run locally or not .
@SaiLochana you can run https://github.com/ihmily/outfit-anyone , it works normally.
@ihmily I run in local ,there i got error as above mentioned ,can u please solve this are evbn can u any info about the api where can i get and its specifications like price ,gpu requirement etc.
I have made modifications to the client code of the original project. You can use my project and install corresponding dependencies, which should run normally
You can access https://github.com/ihmily/outfit-anyone Learn more and use the code
@ihmily nope still its showing same error . can u confirm does this code can be run locally ?
@ihmily nope still its showing same error . can u confirm does this code can be run locally ?
@SaiLochana sure, I just ran it now, this is my run web : https://u207965-8849-3294b279.westb.seetacloud.com:8443/
I think you need install the correct dependencies and set correct OA_IP_ADDRESS environment variable
@ihmily ,where can I get OA_IP_ADDRESS