Spaces:
Running
Running
Aymeric Roucher
commited on
Commit
β’
37c61d6
1
Parent(s):
e7cb6de
Update app.py
Browse files
app.py
CHANGED
@@ -3,5 +3,13 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|