Ramesh-vani commited on
Commit
3fcc68b
·
1 Parent(s): ece652e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -11,10 +11,7 @@ def run_command(command):
11
  result = error.decode('utf-8')
12
  return result
13
 
14
- # Example usage
15
 
16
- def my_inference_function(name):
17
- return "Hello " + name + "!"
18
 
19
  gradio_interface = gradio.Interface(
20
  fn=run_command,
@@ -24,8 +21,8 @@ gradio_interface = gradio.Interface(
24
  ["ls -l"],
25
  ["pip install bs4"]
26
  ],
27
- title="REST API with Gradio and Huggingface Spaces",
28
- 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.",
29
- article="© Tom Söderlund 2022"
30
  )
31
  gradio_interface.launch()
 
11
  result = error.decode('utf-8')
12
  return result
13
 
 
14
 
 
 
15
 
16
  gradio_interface = gradio.Interface(
17
  fn=run_command,
 
21
  ["ls -l"],
22
  ["pip install bs4"]
23
  ],
24
+ title="REST API ",
25
+ description="This is an AI powered REST API ",
26
+ article=""
27
  )
28
  gradio_interface.launch()