keithhon commited on
Commit
ac5b73d
1 Parent(s): 51567df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -1,7 +1,18 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ def renderUrlIntoImage(url):
4
+ return ""
5
+
6
+ def imageToText(image):
7
+ return ""
8
 
9
+ def classifyText(text):
10
+ return "Available"
11
+
12
+ def checkAvailable(url):
13
+ image = renderUrlIntoImage(url)
14
+ text = imageToText(image)
15
+ return classifyText(text)
16
+
17
+ iface = gr.Interface(fn=checkAvailable, inputs="text", outputs="text")
18
  iface.launch()