Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -1,10 +1,14 @@
|
|
1 |
-
from typing import Union
|
2 |
-
|
3 |
-
from fastapi import FastAPI
|
4 |
-
|
5 |
-
app = FastAPI()
|
6 |
-
|
7 |
-
|
8 |
-
@app.get("/")
|
9 |
-
def read_root():
|
10 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Union
|
2 |
+
|
3 |
+
from fastapi import FastAPI
|
4 |
+
|
5 |
+
app = FastAPI()
|
6 |
+
|
7 |
+
dataset='hello world how are you'
|
8 |
+
@app.get("/")
|
9 |
+
def read_root():
|
10 |
+
response_data:{
|
11 |
+
'Status':'Success',
|
12 |
+
'data':dataset
|
13 |
+
}
|
14 |
+
return response_data
|