Docsum Gradio UI entry. Interact with users to summarize documents and text by uploading files or pa
7.6K
This project provides a user interface for summarizing documents and text using a Dockerized frontend application. Users can upload files or paste text to generate summaries.
To build the frontend Docker image, navigate to the GenAIExamples/DocSum/ui directory and run the following command:
cd GenAIExamples/DocSum/ui
docker build -t opea/docsum-gradio-ui:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f docker/Dockerfile.gradio .
This command builds the Docker image with the tag opea/docsum-ui:latest. It also passes the proxy settings as build arguments to ensure that the build process can access the internet if you are behind a corporate firewall.
To run the frontend Docker image, navigate to the GenAIExamples/DocSum/ui/docker directory and execute the following commands:
cd GenAIExamples/DocSum/ui/docker
ip_address=$(hostname -I | awk '{print $1}')
docker run -d -p 5173:5173 --ipc=host \
-e http_proxy=$http_proxy \
-e https_proxy=$https_proxy \
-e no_proxy=$no_proxy \
-e BACKEND_SERVICE_ENDPOINT=http://$ip_address:8888/v1/docsum \
opea/docsum-gradio-ui:latest
This command runs the Docker container in interactive mode, mapping port 5173 of the host to port 5173 of the container. It also sets several environment variables, including the backend service endpoint, which is required for the frontend to communicate with the backend service.
To run the frontend application directly using Python, navigate to the GenAIExamples/DocSum/ui/gradio directory and run the following command:
cd GenAIExamples/DocSum/ui/gradio
python docsum_ui_gradio.py
This command starts the frontend application using Python.

Here are some of the project's features:
Ensure you have Docker installed and running on your system. Also, make sure you have the necessary proxy settings configured if you are behind a corporate firewall.
http_proxy: Proxy setting for HTTP connections.https_proxy: Proxy setting for HTTPS connections.no_proxy: Comma-separated list of hosts that should be excluded from proxying.BACKEND_SERVICE_ENDPOINT: The endpoint of the backend service that the frontend will communicate with.This README file provides detailed instructions and explanations for building and running the Dockerized frontend application, as well as running it directly using Python. It also highlights the key features of the project and provides additional information for troubleshooting and configuring the environment.
Content type
Image
Digest
sha256:34a41a24c…
Size
444.3 MB
Last updated
6 months ago
docker pull opea/docsum-gradio-ui