Sai004 commited on
Commit
aeee7ee
·
1 Parent(s): 010d491

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -212,11 +212,10 @@ def get_links(user_input):
212
  return links
213
 
214
 
215
-
216
  gradio_interface = gradio.Interface(
217
  fn=get_links,
218
  inputs="text",
219
- outputs="list",
220
  examples=[
221
  ["Jill"],
222
  ["Sam"]
@@ -225,4 +224,5 @@ gradio_interface = gradio.Interface(
225
  description="This is a demo of how to build an AI powered REST API with Gradio and Huggingface Spaces – for free! Based on [this article](https://www.tomsoderlund.com/ai/building-ai-powered-rest-api). See the **Use via API** link at the bottom of this page.",
226
  article="© POSA MOKSHITH 2023"
227
  )
 
228
  gradio_interface.launch()
 
212
  return links
213
 
214
 
 
215
  gradio_interface = gradio.Interface(
216
  fn=get_links,
217
  inputs="text",
218
+ outputs=gradio.outputs.List(),
219
  examples=[
220
  ["Jill"],
221
  ["Sam"]
 
224
  description="This is a demo of how to build an AI powered REST API with Gradio and Huggingface Spaces – for free! Based on [this article](https://www.tomsoderlund.com/ai/building-ai-powered-rest-api). See the **Use via API** link at the bottom of this page.",
225
  article="© POSA MOKSHITH 2023"
226
  )
227
+
228
  gradio_interface.launch()