Spaces:
Runtime error
Runtime error
Ramesh-vani
commited on
Commit
·
3fcc68b
1
Parent(s):
ece652e
Update app.py
Browse files
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
|
28 |
-
description="This is
|
29 |
-
article="
|
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()
|