Spaces:
Sleeping
Sleeping
AI: Update run.py
Browse files
run.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(name, intensity):
|
| 4 |
-
return "
|
| 5 |
|
| 6 |
demo = gr.Interface(
|
| 7 |
fn=greet,
|
|
@@ -10,4 +10,4 @@ demo = gr.Interface(
|
|
| 10 |
)
|
| 11 |
|
| 12 |
if __name__ == "__main__":
|
| 13 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(name, intensity):
|
| 4 |
+
return "Hi, " + name + "!" * int(intensity)
|
| 5 |
|
| 6 |
demo = gr.Interface(
|
| 7 |
fn=greet,
|
|
|
|
| 10 |
)
|
| 11 |
|
| 12 |
if __name__ == "__main__":
|
| 13 |
+
demo.launch()
|