tomsoderlund
commited on
Commit
•
6667ce7
1
Parent(s):
1878582
Gradio title/description/article
Browse files
README.md
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.12.0
|
|
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
license: openrail
|
11 |
---
|
12 |
|
13 |
-
|
|
|
1 |
---
|
2 |
+
title: REST API with Gradio and Huggingface Spaces
|
3 |
+
emoji: 👩💻
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.12.0
|
8 |
+
python_version: 3.9.13
|
9 |
app_file: app.py
|
10 |
+
pinned: true
|
11 |
license: openrail
|
12 |
---
|
13 |
|
14 |
+
This is a demo from this article: https://www.tomsoderlund.com/ai/building-ai-powered-rest-api
|
app.py
CHANGED
@@ -10,6 +10,9 @@ gradio_interface = gradio.Interface(
|
|
10 |
examples=[
|
11 |
["Jill"],
|
12 |
["Sam"]
|
13 |
-
]
|
|
|
|
|
|
|
14 |
)
|
15 |
gradio_interface.launch()
|
|
|
10 |
examples=[
|
11 |
["Jill"],
|
12 |
["Sam"]
|
13 |
+
],
|
14 |
+
title="REST API with Gradio and Huggingface Spaces",
|
15 |
+
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.",
|
16 |
+
article="© Tom Söderlund 2022"
|
17 |
)
|
18 |
gradio_interface.launch()
|