SEE7 commited on
Commit
f671e86
·
verified ·
1 Parent(s): 14c44a0

Add minimal success API Space

Browse files
Files changed (2) hide show
  1. README.md +6 -7
  2. app.py +15 -0
README.md CHANGED
@@ -1,13 +1,12 @@
1
  ---
2
- title: Success On Call
3
- emoji: 📊
4
- colorFrom: indigo
5
- colorTo: pink
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
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
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()