You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try processing files, which takes more than a minute, i get this error in chrom console
`Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'abort_controller')
at stream (index.js:2259:10)
at UploadProgress.svelte:41:18
at run (svelte.js:41:9)
at Array.map ()
at svelte.js:3182:48
at flush (svelte.js:2141:5)Understand this error
/queue/data?session_hash=r1p8j140uzi:1
Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERRORUnderstand this error
I searched out they instruicted to use enable_queue but didn't solve the problem
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
importgradioasgr# Gradio interface functiondefdocx_processor(input_files):
time.sleep(500000)
returninput_files# Define Gradio interfaceiface=gr.Interface(
fn=docx_processor,
inputs=gr.Files(label="Upload Files"), # Corrected type to "filepath"outputs=gr.Files(label="Processed Files"),
title="DOCX Processor",
live=True,
description="Process a DOCX file by converting it to Markdown, running through a language model, and converting back to DOCX in batches."
)
iface.launch(debug=True)
Screenshot
No response
Logs
No response
System Info
Name: gradio
Version: 4.37.1
Summary: Python library for easily interacting with trained machine learning models
Home-page:
Author:
Author-email: Abubakar Abid <gradio-team@huggingface.co>, Ali Abid <gradio-team@huggingface.co>, Ali Abdalla <gradio-team@huggingface.co>, Dawood Khan <gradio-team@huggingface.co>, Ahsen Khaliq <gradio-team@huggingface.co>, Pete Allen <gradio-team@huggingface.co>, Ömer Faruk Özdemir <gradio-team@huggingface.co>, Freddy A Boulton <gradio-team@huggingface.co>, Hannah Blair <gradio-team@huggingface.co>
License:
Location: /usr/local/python/3.10.13/lib/python3.10/site-packages
Requires: aiofiles, altair, fastapi, ffmpy, gradio-client, httpx, huggingface-hub, importlib-resources, jinja2, markupsafe, matplotlib, numpy, orjson, packaging, pandas, pillow, pydantic, pydub, python-multipart, pyyaml, ruff, semantic-version, tomlkit, typer, typing-extensions, urllib3, uvicorn
Required-by:
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
So this happens while the docx_processor function is running or during the upload. Asking cause the console error mentions UploadProgress but if it happens after the upload then it may not be relevant to the root cause of the issue.
Describe the bug
When i try processing files, which takes more than a minute, i get this error in chrom console
`Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'abort_controller')
at stream (index.js:2259:10)
at UploadProgress.svelte:41:18
at run (svelte.js:41:9)
at Array.map ()
at svelte.js:3182:48
at flush (svelte.js:2141:5)Understand this error
/queue/data?session_hash=r1p8j140uzi:1
index.js:2045 Unexpected error Connection errored out. `
I searched out they instruicted to use enable_queue but didn't solve the problem
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: