snirjhar-colab commited on
Commit
eb4c8f8
·
verified ·
1 Parent(s): cca6b54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,6 +10,7 @@ url = "https://github.com/jpillora/chisel/releases/download/v1.10.1/chisel_1.10.
10
  file_name = "chisel_1.10.1_linux_amd64.gz"
11
  output_file = "chisel"
12
 
 
13
  # Download the .gz file
14
  response = requests.get(url, stream=True)
15
  with open(file_name, 'wb') as f:
@@ -30,7 +31,7 @@ print(f"Extracted {output_file}")
30
  # Start chisel server in the background
31
  def start_chisel():
32
  try:
33
- os.system(f"./{output_file} server --host 0.0.0.0 --port 7860" --proxy http://127.0.0.1:8188 --reverse)
34
  print("Chisel server started successfully.")
35
  except Exception as e:
36
  print(f"Failed to start chisel server: {e}")
 
10
  file_name = "chisel_1.10.1_linux_amd64.gz"
11
  output_file = "chisel"
12
 
13
+ print('Downloading chisel')
14
  # Download the .gz file
15
  response = requests.get(url, stream=True)
16
  with open(file_name, 'wb') as f:
 
31
  # Start chisel server in the background
32
  def start_chisel():
33
  try:
34
+ os.system(f"./{output_file} server --host 0.0.0.0 --port 7860 --proxy http://127.0.0.1:8188 --reverse")
35
  print("Chisel server started successfully.")
36
  except Exception as e:
37
  print(f"Failed to start chisel server: {e}")