Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
return
|
5 |
|
6 |
-
demo = gr.Interface(fn=
|
7 |
-
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def show_json(text):
|
4 |
+
return text
|
5 |
|
6 |
+
demo = gr.Interface(fn=show_json, inputs="text", outputs="json")
|
7 |
+
|
8 |
+
if __name__ == "__main__":
|
9 |
+
demo.launch()
|