emanism6 commited on
Commit
e14fa5b
1 Parent(s): 0d9b17d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -65,7 +65,7 @@ async def Predict_Sentiment(text_input: TextInput):
65
  # Run the FastAPI app using Uvicorn
66
  if __name__ == "__main__":
67
  # Create ngrok tunnel
68
- ngrok_tunnel = ngrok.connect(8000)
69
  print('Public URL:', ngrok_tunnel.public_url)
70
 
71
  # Allow nested asyncio calls
@@ -73,4 +73,4 @@ if __name__ == "__main__":
73
 
74
  # Run the FastAPI app with Uvicorn
75
  import uvicorn
76
- uvicorn.run(app, port=8000)
 
65
  # Run the FastAPI app using Uvicorn
66
  if __name__ == "__main__":
67
  # Create ngrok tunnel
68
+ ngrok_tunnel = ngrok.connect(7860)
69
  print('Public URL:', ngrok_tunnel.public_url)
70
 
71
  # Allow nested asyncio calls
 
73
 
74
  # Run the FastAPI app with Uvicorn
75
  import uvicorn
76
+ uvicorn.run(app, port=7860)