Open virajkarandikar opened 9 months ago
Any update here?
Not yet, we haven't had a chance to take a look at this, but its on our radar
Any updates here?
Hi @virajkarandikar are you still facing this issue when you upgrade to Gradio 4.0?
Closing for lack of followup -- let us know if we need to reopen.
I still see error with Gradio 4.7.1 Can you please reopen this issue?
To create a public link, set `share=True` in `launch()`.
Traceback (most recent call last):
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/queueing.py", line 456, in call_prediction
output = await route_utils.call_process_api(
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/route_utils.py", line 232, in call_process_api
output = await app.get_blocks().process_api(
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/blocks.py", line 1522, in process_api
result = await self.call_function(
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/blocks.py", line 1144, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/vkarandikar/.local/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/vkarandikar/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/home/vkarandikar/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/utils.py", line 674, in wrapper
response = f(*args, **kwargs)
File "audio_issue.py", line 26, in <lambda>
flag_btn.click(lambda *args: tts_logger_callback.flag(args), [output_audio], None, preprocess=False, postprocess=False)
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/flagging.py", line 173, in flag
component.flag(sample, flag_dir=save_dir)
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/components/base.py", line 266, in flag
return payload.copy_to_dir(flag_dir).model_dump_json()
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/data_classes.py", line 94, in copy_to_dir
x=traverse(
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio_client/utils.py", line 773, in traverse
return func(json_obj)
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/data_classes.py", line 89, in unique_copy
return data._copy_to_dir(
File "/home/vkarandikar/.local/lib/python3.8/site-packages/gradio/data_classes.py", line 151, in _copy_to_dir
new_name = shutil.copy(self.path, dir)
File "/usr/lib/python3.8/shutil.py", line 418, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.8/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '1qmiews653w/139887788603568/2'
Ok I'll go ahead and open this again
Describe the bug
I have an output audio block with streaming=True. I call yield audio chunks in my callback function. Audio playback works fine. But when I try to Flag the output with default CSVLogger(), I get following assertion.
Note that flagging works fine if I use streaming=False and feed entire audio at once.
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
Blocking usage of gradio