Add minimal success API Space
Browse files
README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title: Success
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 6.32.0
|
| 8 |
-
python_version: '3.13'
|
| 9 |
app_file: app.py
|
|
|
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Success on Call
|
| 3 |
+
emoji: ✅
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: gradio
|
|
|
|
|
|
|
| 7 |
app_file: app.py
|
| 8 |
+
hardware: zero-a10g
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
A minimal API Space. Call the `success` endpoint to receive `success`.
|
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def success():
|
| 4 |
+
return "success"
|
| 5 |
+
|
| 6 |
+
app = gr.Interface(
|
| 7 |
+
fn=success,
|
| 8 |
+
inputs=None,
|
| 9 |
+
outputs=gr.Textbox(label="Result"),
|
| 10 |
+
api_name="success",
|
| 11 |
+
title="Success on Call",
|
| 12 |
+
description="Call the API to receive a success response.",
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
+
app.launch()
|