Spaces:
Runtime error
Runtime error
no message
Browse files
app.py
CHANGED
|
@@ -5,19 +5,11 @@ from gradio_client import Client
|
|
| 5 |
DEBUG_MODE = True
|
| 6 |
|
| 7 |
MESAGE_HEADER = """
|
| 8 |
-
#
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
It is made of 2 components: *API_demo_server* and *API_demo_client*.
|
| 14 |
-
|
| 15 |
-
* Server component: ππ [Nuno-Tome/API_demo_server](Nuno-Tome/aPI_demo_server)
|
| 16 |
-
|
| 17 |
-
* Client component: ππ©π»βπ» [Nuno-Tome/API_demo_client](Nuno-Tome/aPI_demo_client)
|
| 18 |
-
|
| 19 |
-
**Just write you message and watch it be returned by the server.**
|
| 20 |
-
|
| 21 |
"""
|
| 22 |
|
| 23 |
|
|
@@ -34,7 +26,7 @@ def get_bmc_markdown():
|
|
| 34 |
|
| 35 |
|
| 36 |
def send_request(text):
|
| 37 |
-
client = Client("Nuno-Tome/
|
| 38 |
result = client.predict(
|
| 39 |
text,
|
| 40 |
api_name="/predict"
|
|
@@ -44,8 +36,8 @@ def send_request(text):
|
|
| 44 |
with gr.Blocks() as demo:
|
| 45 |
|
| 46 |
gr.Markdown(MESAGE_HEADER)
|
| 47 |
-
gr.DuplicateButton()
|
| 48 |
-
gr.Markdown(get_bmc_markdown())
|
| 49 |
|
| 50 |
with gr.Row():
|
| 51 |
with gr.Column():
|
|
|
|
| 5 |
DEBUG_MODE = True
|
| 6 |
|
| 7 |
MESAGE_HEADER = """
|
| 8 |
+
# π£ Neural News Forge project π£
|
| 9 |
|
| 10 |
+
## ππ Tester for sand-box/nnf_text_to_speech_v1 ππ
|
| 11 |
+
### testes for basic GET
|
| 12 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"""
|
| 14 |
|
| 15 |
|
|
|
|
| 26 |
|
| 27 |
|
| 28 |
def send_request(text):
|
| 29 |
+
client = Client("Nuno-Tome/nnf_text_to_speech_v1")
|
| 30 |
result = client.predict(
|
| 31 |
text,
|
| 32 |
api_name="/predict"
|
|
|
|
| 36 |
with gr.Blocks() as demo:
|
| 37 |
|
| 38 |
gr.Markdown(MESAGE_HEADER)
|
| 39 |
+
#gr.DuplicateButton()
|
| 40 |
+
#gr.Markdown(get_bmc_markdown())
|
| 41 |
|
| 42 |
with gr.Row():
|
| 43 |
with gr.Column():
|