Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,10 @@
|
|
1 |
-
from fastapi import FastAPI
|
2 |
-
|
3 |
|
4 |
app = FastAPI()
|
5 |
-
translator = LibreTranslate()
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
except Exception as e:
|
13 |
-
raise HTTPException(status_code=500, detail=str(e))
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
import subprocess
|
3 |
|
4 |
app = FastAPI()
|
|
|
5 |
|
6 |
+
subprocess.Popen(['python', 'main.py'])
|
7 |
+
|
8 |
+
@app.get("/")
|
9 |
+
def greet_json():
|
10 |
+
return {"Hello": "World!"}
|
|
|
|