Update app-backup.py
Browse files- app-backup.py +30 -1
app-backup.py
CHANGED
|
@@ -50,6 +50,7 @@ footer, .footer, .gradio-container footer, .built-with, [class*="footer"], .grad
|
|
| 50 |
height: 0 !important;
|
| 51 |
}
|
| 52 |
|
|
|
|
| 53 |
/* HOME Button Style */
|
| 54 |
.home-button-container {
|
| 55 |
display: flex;
|
|
@@ -1277,7 +1278,35 @@ def convert_hwp(file, output_format, progress=gr.Progress()):
|
|
| 1277 |
return None, f"❌ 오류: {str(e)}", ""
|
| 1278 |
|
| 1279 |
# ============== Gradio UI ==============
|
| 1280 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1281 |
|
| 1282 |
# HOME Button
|
| 1283 |
gr.HTML("""
|
|
|
|
| 50 |
height: 0 !important;
|
| 51 |
}
|
| 52 |
|
| 53 |
+
|
| 54 |
/* HOME Button Style */
|
| 55 |
.home-button-container {
|
| 56 |
display: flex;
|
|
|
|
| 1278 |
return None, f"❌ 오류: {str(e)}", ""
|
| 1279 |
|
| 1280 |
# ============== Gradio UI ==============
|
| 1281 |
+
with gr.Blocks(
|
| 1282 |
+
title="HWPower AI 어시스턴트",
|
| 1283 |
+
css=COMIC_CSS,
|
| 1284 |
+
delete_cache=(60, 60),
|
| 1285 |
+
head="""
|
| 1286 |
+
<style>
|
| 1287 |
+
header, .container.svelte-1kyws56, #huggingface-space-header,
|
| 1288 |
+
div[class*="space-header"], .huggingface-space-header {
|
| 1289 |
+
display: none !important;
|
| 1290 |
+
height: 0 !important;
|
| 1291 |
+
overflow: hidden !important;
|
| 1292 |
+
}
|
| 1293 |
+
</style>
|
| 1294 |
+
<script>
|
| 1295 |
+
function hideHfHeader() {
|
| 1296 |
+
const selectors = ['header', '.space-header', '#huggingface-space-header',
|
| 1297 |
+
'[class*="header-bar"]', '.container.svelte-1kyws56'];
|
| 1298 |
+
selectors.forEach(sel => {
|
| 1299 |
+
document.querySelectorAll(sel).forEach(el => {
|
| 1300 |
+
if (el && !el.closest('.gradio-container')) {
|
| 1301 |
+
el.style.cssText = 'display:none!important;height:0!important;';
|
| 1302 |
+
}
|
| 1303 |
+
});
|
| 1304 |
+
});
|
| 1305 |
+
}
|
| 1306 |
+
setInterval(hideHfHeader, 300);
|
| 1307 |
+
</script>
|
| 1308 |
+
"""
|
| 1309 |
+
) as demo:
|
| 1310 |
|
| 1311 |
# HOME Button
|
| 1312 |
gr.HTML("""
|