Jared il y a 2 ans
Parent
commit
f424aaa8d1
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      similar_web/main.py

+ 4 - 1
similar_web/main.py

@@ -17,7 +17,8 @@ import time
 from google.ads.googleads.client import GoogleAdsClient
 sys.path.append('.')
 import kw_planner
- 
+import uvicorn
+
 fake_rank_plus = 700
 fake_traffic_weighted = 1.3
 
@@ -240,6 +241,8 @@ async def get_domain_data(req:q_req):
 
 
 
+if __name__ == "__main__":
+    uvicorn.run("main:app", host="0.0.0.0", port=8081)