Skip to content

A Gradio component designed to continuously show any logs.

Notifications You must be signed in to change notification settings

louis-she/gradio-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gradio_log

PyPI - Version

A Log component of Gradio which can easily continuously print any log file content into the user interface.

Credit: Featurize 算力平台

static dynamic

Installation

pip install gradio_log

Usage

import gradio as gr
from gradio_log import Log

log_file = "/path/to/your/log_file.txt"

with gr.Blocks() as demo:
    Log(log_file, dark=True, xterm_font_size=12)

if __name__ == "__main__":
    demo.launch()

After launched, try to add some new logs into the log file, and you will see the new logs are printed in the user interface.

About

A Gradio component designed to continuously show any logs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published