Update README.md
Browse files
README.md
CHANGED
@@ -26,3 +26,17 @@ iface = gr.Interface(
|
|
26 |
|
27 |
iface.launch()
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
iface.launch()
|
28 |
|
29 |
+
import gradio as gr
|
30 |
+
|
31 |
+
def greet(name):
|
32 |
+
return "Hello, " + name + "!"
|
33 |
+
|
34 |
+
demo = gr.Interface(
|
35 |
+
fn=greet,
|
36 |
+
inputs=gr.Textbox(label="Nama Anda"),
|
37 |
+
outputs=gr.Textbox(label="Hasil"),
|
38 |
+
)
|
39 |
+
|
40 |
+
demo.launch()
|
41 |
+
|
42 |
+
|