Update main.py
Browse files
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(
|
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=
|
|
|
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)
|