Spaces:
Sleeping
Sleeping
Commit ·
fcdd824
1
Parent(s): cd511e8
Add sinatools usage example
Browse files
app.py
CHANGED
|
@@ -1,7 +1,11 @@
|
|
| 1 |
from fastapi import FastAPI
|
|
|
|
| 2 |
|
| 3 |
app = FastAPI()
|
| 4 |
|
| 5 |
@app.get("/")
|
| 6 |
def greet_json():
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
from sinatools.utils import parser
|
| 3 |
|
| 4 |
app = FastAPI()
|
| 5 |
|
| 6 |
@app.get("/")
|
| 7 |
def greet_json():
|
| 8 |
+
|
| 9 |
+
output =parser.arStrip('2023الجو جميلُ')
|
| 10 |
+
print(output)
|
| 11 |
+
return {"output": "output"}
|