Aymeric Roucher commited on
Commit
37c61d6
β€’
1 Parent(s): e7cb6de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -3,5 +3,13 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
7
  iface.launch()
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
+ iface = gr.Interface(
7
+ fn=greet,
8
+ inputs="text",
9
+ outputs=gr.HighlightedText(
10
+ label="Diff",
11
+ combine_adjacent=True,
12
+ show_legend=True,
13
+ color_map={"+": "red", "-": "green"}),
14
+ )
15
  iface.launch()