GitHub Actions
Deploy from GitHub: d37739d06a42364c1030f4ed4e424ee48bffb627
361f3ec
raw
history blame contribute delete
403 Bytes
import gradio as gr
from transformers.tools.base import launch_gradio_demo
# Version: 2.0.0 - Fixed deprecated transformers.tools import, updated Gradio
iface = gr.Interface(
fn=launch_gradio_demo,
inputs=gr.Textbox(lines=3, label="Input"),
outputs=gr.Textbox(label="Output"),
title="word-counter-tool",
description="word counter "
)
if __name__ == "__main__":
iface.launch()