Spaces:
Runtime error
Runtime error
Try now?
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from huggingface_hub import hf_hub_download
|
|
6 |
import gradio as gr
|
7 |
|
8 |
PORT = 3000
|
9 |
-
HOST = "
|
10 |
|
11 |
REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
|
12 |
|
@@ -25,7 +25,22 @@ def run_aim():
|
|
25 |
os.spawnl(os.P_DETACH, cmd)
|
26 |
|
27 |
html = f"""
|
28 |
-
<iframe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
"""
|
30 |
|
31 |
def run():
|
|
|
6 |
import gradio as gr
|
7 |
|
8 |
PORT = 3000
|
9 |
+
HOST = "127.0.0.1"
|
10 |
|
11 |
REPO_ID = "muellerzr/bert-base-cased-tpu-accelerate-experiments"
|
12 |
|
|
|
25 |
os.spawnl(os.P_DETACH, cmd)
|
26 |
|
27 |
html = f"""
|
28 |
+
<iframe
|
29 |
+
src="https://{HOST}:{PORT}"
|
30 |
+
style="
|
31 |
+
position: fixed;
|
32 |
+
top: 0px;
|
33 |
+
bottom: 0px;
|
34 |
+
right: 0px;
|
35 |
+
width: 100%;
|
36 |
+
border: none;
|
37 |
+
margin: 0;
|
38 |
+
padding: 0;
|
39 |
+
overflow: hidden;
|
40 |
+
z-index: 999999;
|
41 |
+
height: 100%;
|
42 |
+
">
|
43 |
+
</iframe>
|
44 |
"""
|
45 |
|
46 |
def run():
|