Spaces:
Sleeping
Sleeping
32
Browse files
app.py
CHANGED
@@ -3,10 +3,14 @@ import gradio as gr
|
|
3 |
def describe_image(image):
|
4 |
return "This is a simple image processing API."
|
5 |
|
|
|
|
|
|
|
|
|
6 |
iface = gr.Interface(
|
7 |
fn=describe_image,
|
8 |
inputs=gr.Image(type="filepath"),
|
9 |
-
outputs=
|
10 |
title="Simple Image API",
|
11 |
description="Upload an image and get a simple description."
|
12 |
)
|
|
|
3 |
def describe_image(image):
|
4 |
return "This is a simple image processing API."
|
5 |
|
6 |
+
def jls_extract_def():
|
7 |
+
return "text"
|
8 |
+
|
9 |
+
|
10 |
iface = gr.Interface(
|
11 |
fn=describe_image,
|
12 |
inputs=gr.Image(type="filepath"),
|
13 |
+
outputs=jls_extract_def(),
|
14 |
title="Simple Image API",
|
15 |
description="Upload an image and get a simple description."
|
16 |
)
|