Spaces:
Sleeping
Sleeping
m-abdur2024
commited on
Commit
β’
7642fc9
1
Parent(s):
0d3476b
Update README.md
Browse files
README.md
CHANGED
@@ -1,34 +1,11 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
Create an endpoint `/square` that accepts a JSON payload over `POST` described below.
|
13 |
-
|
14 |
-
### Input
|
15 |
-
|
16 |
-
Example:
|
17 |
-
`{ "input": 5 }`
|
18 |
-
|
19 |
-
### Output
|
20 |
-
|
21 |
-
Example:
|
22 |
-
`25`
|
23 |
-
|
24 |
-
## Explanation
|
25 |
-
|
26 |
-
This project is built using [flask](https://flask.palletsprojects.com/en/2.3.x/) and is meant to run a REST server which we will be using mainly for UBS Coding Challenge.
|
27 |
-
|
28 |
-
By default, `app.py` contains a root path `/` which would return a default string value. And the implementation within `routes/square.py` exposes a route `/square` accepting a `POST` request with the given input to return a number as an output.
|
29 |
-
|
30 |
-
To extend this template further, add more endpoints in the `routes` directory and import the functions within `routes/__init__.py`. This method will be the entry point when you submit your solution for evaluation.
|
31 |
-
|
32 |
-
Note the init.py file in each folder. This file makes python treat directories containing it to be loaded in a module
|
33 |
-
|
34 |
-
Also note that when using render as cloud PAAS, you should be adding `gunicorn app:app` as the start command.
|
|
|
1 |
+
---
|
2 |
+
title: UBS Server
|
3 |
+
emoji: π
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
short_description: UBS
|
9 |
+
---
|
10 |
+
|
11 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|