Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -160,6 +160,9 @@ def start_ngrok_tunnel(port=25565):
|
|
160 |
# Give ngrok a moment to start
|
161 |
import time
|
162 |
time.sleep(3)
|
|
|
|
|
|
|
163 |
|
164 |
# Try to get the tunnel URL from ngrok API
|
165 |
try:
|
|
|
160 |
# Give ngrok a moment to start
|
161 |
import time
|
162 |
time.sleep(3)
|
163 |
+
stdout, stderr = process.communicate(timeout=1) # Add timeout to avoid hanging
|
164 |
+
print("STDOUT:", stdout)
|
165 |
+
print("STDERR:", stderr)
|
166 |
|
167 |
# Try to get the tunnel URL from ngrok API
|
168 |
try:
|