Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
def greet(description,color):
|
|
|
4 |
print(color)
|
5 |
-
return
|
6 |
|
7 |
iface = gr.Interface(fn=greet,
|
8 |
inputs=[gr.Textbox(label='Description'),
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
|
4 |
def greet(description,color):
|
5 |
+
final = description.replace(' ', '-')
|
6 |
print(color)
|
7 |
+
return final
|
8 |
|
9 |
iface = gr.Interface(fn=greet,
|
10 |
inputs=[gr.Textbox(label='Description'),
|