kenken999 commited on
Commit
971228f
·
1 Parent(s): 6958ad9
Files changed (1) hide show
  1. app.py +5 -1
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="text",
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
  )