Update app.py
Browse files
app.py
CHANGED
|
@@ -14,10 +14,10 @@ def start_tor_and_wait(tor_path="tor"):
|
|
| 14 |
bufsize=1
|
| 15 |
)
|
| 16 |
for line in process.stdout:
|
|
|
|
| 17 |
if "Bootstrapped 100% (done)" in line:
|
| 18 |
print("✅ Tor fully started")
|
| 19 |
return process
|
| 20 |
-
|
| 21 |
return None
|
| 22 |
|
| 23 |
class SocksProxy:
|
|
@@ -175,4 +175,4 @@ client = YTDownloader()
|
|
| 175 |
import gradio as gr
|
| 176 |
def f(x,prog=gr.Progress(True)):
|
| 177 |
return client(x)
|
| 178 |
-
gr.Interface(client,gr.Textbox(),gr.Audio()).launch()
|
|
|
|
| 14 |
bufsize=1
|
| 15 |
)
|
| 16 |
for line in process.stdout:
|
| 17 |
+
print(line)
|
| 18 |
if "Bootstrapped 100% (done)" in line:
|
| 19 |
print("✅ Tor fully started")
|
| 20 |
return process
|
|
|
|
| 21 |
return None
|
| 22 |
|
| 23 |
class SocksProxy:
|
|
|
|
| 175 |
import gradio as gr
|
| 176 |
def f(x,prog=gr.Progress(True)):
|
| 177 |
return client(x)
|
| 178 |
+
gr.Interface(client,gr.Textbox(),gr.Audio()).launch()
|