Spaces:
Sleeping
Sleeping
done
Browse files
app.py
CHANGED
|
@@ -5,19 +5,16 @@ from gradio_client import Client
|
|
| 5 |
DEBUG_MODE = True
|
| 6 |
|
| 7 |
MESAGE_HEADER = """
|
| 8 |
-
# 🔌👩🏻💻 API Demo (Client component) 🔌👩🏻💻
|
| 9 |
-
|
| 10 |
|
| 11 |
Welcome to my simple demonstration of the gradio potential as an API.
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
* Server component: 🔌🌐 [Nuno-Tome/API_demo_server](Nuno-Tome/aPI_demo_server)
|
| 16 |
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
**Just write you message and watch it be returned by the server.**
|
| 20 |
-
|
| 21 |
"""
|
| 22 |
|
| 23 |
INPUT_TEXT_DEFAULT = """
|
|
@@ -33,7 +30,6 @@ Não posso querer ser nada.
|
|
| 33 |
INPUT_SERVER_DEFAULT = "Nuno-Tome/API_demo_server"
|
| 34 |
|
| 35 |
|
| 36 |
-
|
| 37 |
def get_bmc_markdown():
|
| 38 |
bmc_link = "https://www.buymeacoffee.com/nuno.tome"
|
| 39 |
image_url = "https://helloimjessa.files.wordpress.com/2021/06/bmc-button.png" # Image URL
|
|
|
|
| 5 |
DEBUG_MODE = True
|
| 6 |
|
| 7 |
MESAGE_HEADER = """
|
| 8 |
+
# 🔌👩🏻💻 2nd API Demo (Client component) 🔌👩🏻💻
|
|
|
|
| 9 |
|
| 10 |
Welcome to my simple demonstration of the gradio potential as an API.
|
| 11 |
|
| 12 |
+
This is an evolution of the first API demo. (Nuno-Tome/aPI_demo_client)
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
It is made of 2 components: An client that requests to a introduced server. This server should respont whith a JSON to a given text.
|
| 15 |
+
* Exemple Server: 🔌🌐 [Nuno-Tome/API_demo_server](Nuno-Tome/aPI_demo_server)
|
| 16 |
|
| 17 |
**Just write you message and watch it be returned by the server.**
|
|
|
|
| 18 |
"""
|
| 19 |
|
| 20 |
INPUT_TEXT_DEFAULT = """
|
|
|
|
| 30 |
INPUT_SERVER_DEFAULT = "Nuno-Tome/API_demo_server"
|
| 31 |
|
| 32 |
|
|
|
|
| 33 |
def get_bmc_markdown():
|
| 34 |
bmc_link = "https://www.buymeacoffee.com/nuno.tome"
|
| 35 |
image_url = "https://helloimjessa.files.wordpress.com/2021/06/bmc-button.png" # Image URL
|