Spaces:
Sleeping
Sleeping
HaochenGong commited on
Commit ·
e896f94
1
Parent(s): 3886259
debug
Browse files- app.py +0 -11
- web_page.html +2 -2
app.py
CHANGED
|
@@ -308,17 +308,6 @@ def new_example_inference_3():
|
|
| 308 |
# def toggle_dataframe_callback():
|
| 309 |
# complete_result_dataframe.visible = not complete_result_dataframe.visible
|
| 310 |
|
| 311 |
-
# 获取当前工作目录
|
| 312 |
-
current_dir = os.getcwd()
|
| 313 |
-
|
| 314 |
-
# 构建图片路径
|
| 315 |
-
css_path = os.path.join(current_dir, "web_page.css")
|
| 316 |
-
img_path1 = os.path.join(current_dir, "images", "head.jpg")
|
| 317 |
-
img_path2 = os.path.join(current_dir, "images", "eg1.jpg")
|
| 318 |
-
img_path3 = os.path.join(current_dir, "images", "eg2.jpg")
|
| 319 |
-
img_path4 = os.path.join(current_dir, "images", "eg3.jpg")
|
| 320 |
-
img_path5 = os.path.join(current_dir, "images", "point.png")
|
| 321 |
-
|
| 322 |
|
| 323 |
with open('web_page.html', 'r', encoding='utf-8') as file:
|
| 324 |
html_content = file.read()
|
|
|
|
| 308 |
# def toggle_dataframe_callback():
|
| 309 |
# complete_result_dataframe.visible = not complete_result_dataframe.visible
|
| 310 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 311 |
|
| 312 |
with open('web_page.html', 'r', encoding='utf-8') as file:
|
| 313 |
html_content = file.read()
|
web_page.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<title>Cpp4App Test</title>
|
| 6 |
-
<link rel="stylesheet" type="text/css" href="
|
| 7 |
</head>
|
| 8 |
<body>
|
| 9 |
|
|
@@ -17,7 +17,7 @@
|
|
| 17 |
</div>
|
| 18 |
</div>
|
| 19 |
<div class="title_half">
|
| 20 |
-
<img src="
|
| 21 |
</div>
|
| 22 |
</div>
|
| 23 |
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<title>Cpp4App Test</title>
|
| 6 |
+
<link rel="stylesheet" type="text/css" href="https://buyanghc.github.io/web_page.css">
|
| 7 |
</head>
|
| 8 |
<body>
|
| 9 |
|
|
|
|
| 17 |
</div>
|
| 18 |
</div>
|
| 19 |
<div class="title_half">
|
| 20 |
+
<img src="https://buyanghc.github.io/head.jpg" alt="">
|
| 21 |
</div>
|
| 22 |
</div>
|
| 23 |
|