Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,6 +93,11 @@ image_path = "/content/drive/My Drive/個人資料/頭貼.jpg"
|
|
93 |
#讀去證照圖片
|
94 |
import gradio as gr
|
95 |
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
with gr.Blocks(css=custom_css,title='我的履歷') as resume_app:# title可以修改页面标题
|
98 |
# with gr.Column():
|
@@ -154,7 +159,7 @@ with gr.Blocks(css=custom_css,title='我的履歷') as resume_app:# title可以
|
|
154 |
<li>
|
155 |
<p style="font-size: 1.3em; font-weight: bold;">{name[i]}</p>
|
156 |
<span style="font-size: 1.0em; font-weight: normal;">
|
157 |
-
|
158 |
</span>
|
159 |
</li>
|
160 |
</ui>
|
|
|
93 |
#讀去證照圖片
|
94 |
import gradio as gr
|
95 |
|
96 |
+
def render_html(prove):
|
97 |
+
if prove is not None:
|
98 |
+
return f'<a href="{prove}" target="_blank">點擊查看證明</a>'
|
99 |
+
else:
|
100 |
+
return ''
|
101 |
|
102 |
with gr.Blocks(css=custom_css,title='我的履歷') as resume_app:# title可以修改页面标题
|
103 |
# with gr.Column():
|
|
|
159 |
<li>
|
160 |
<p style="font-size: 1.3em; font-weight: bold;">{name[i]}</p>
|
161 |
<span style="font-size: 1.0em; font-weight: normal;">
|
162 |
+
{render_html(prove[i])}
|
163 |
</span>
|
164 |
</li>
|
165 |
</ui>
|