Aymeric Roucher
Update app.py
37c61d6
raw
history blame
302 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(
fn=greet,
inputs="text",
outputs=gr.HighlightedText(
label="Diff",
combine_adjacent=True,
show_legend=True,
color_map={"+": "red", "-": "green"}),
)
iface.launch()