Arabiansands commited on
Commit
ef08715
·
verified ·
1 Parent(s): 08d5777

Create Build the Application Layer (UI)

Browse files
Files changed (1) hide show
  1. Build the Application Layer (UI) +7 -0
Build the Application Layer (UI) ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def predict(text):
4
+ return "AI says: " + text
5
+
6
+ demo = gr.Interface(fn=predict, inputs="text", outputs="text")
7
+ demo.launch()