Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,18 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
return "
|
|
|
|
|
|
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|