Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1444,7 +1444,127 @@ def show_tab_3():
|
|
| 1444 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
|
| 1445 |
|
| 1446 |
|
| 1447 |
-
with gr.Blocks(title="パフォーマンス評価")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1448 |
gr.HTML('<div id="header"><span>🔖 パフォーマンス評価</span><img id="logo" src="https://www.ryhintl.com/images/ryhlogo/ryhlogo.png" width="64" height="64" alt="Logo"></div>')
|
| 1449 |
|
| 1450 |
# State variables
|
|
@@ -1486,7 +1606,7 @@ with gr.Blocks(title="パフォーマンス評価") as demo:
|
|
| 1486 |
logout_btn = gr.Button("ログアウト")
|
| 1487 |
|
| 1488 |
with gr.Row(visible=True) as filecomp:
|
| 1489 |
-
gr.Textbox(label="サンプル", lines=10, value="""
|
| 1490 |
パフォーマンスレポート
|
| 1491 |
|
| 1492 |
被評価者氏名 田中 太郎
|
|
@@ -1640,6 +1760,7 @@ with gr.Blocks(title="パフォーマンス評価") as demo:
|
|
| 1640 |
output_text = gr.Textbox(
|
| 1641 |
label="プレ・レビュー・レポート",
|
| 1642 |
lines=10,
|
|
|
|
| 1643 |
interactive=False # Allow user to type
|
| 1644 |
)
|
| 1645 |
|
|
@@ -1661,125 +1782,4 @@ with gr.Blocks(title="パフォーマンス評価") as demo:
|
|
| 1661 |
outputs=[signin,query,smry,b2]
|
| 1662 |
)
|
| 1663 |
|
| 1664 |
-
demo.launch(favicon_path="favicon.ico"
|
| 1665 |
-
.gradio-container {
|
| 1666 |
-
background-color: #f8f9fa;
|
| 1667 |
-
/*width: 100%;
|
| 1668 |
-
height: 100%;
|
| 1669 |
-
background-image: url('https://images.unsplash.com/photo-1527181152855-fc03fc7949c8?auto=format&w=1000&dpr=2');
|
| 1670 |
-
background-size: cover;
|
| 1671 |
-
background-repeat: no-repeat;
|
| 1672 |
-
background-position: center center;*/
|
| 1673 |
-
}
|
| 1674 |
-
.main {
|
| 1675 |
-
background-color: #f8f9fa;
|
| 1676 |
-
}
|
| 1677 |
-
.logo-container {
|
| 1678 |
-
position: absolute;
|
| 1679 |
-
top: 1px;
|
| 1680 |
-
left: 20px;
|
| 1681 |
-
z-index: 1000;
|
| 1682 |
-
}
|
| 1683 |
-
.logo-container img {
|
| 1684 |
-
height: 30px;
|
| 1685 |
-
width: auto;
|
| 1686 |
-
}
|
| 1687 |
-
.title {
|
| 1688 |
-
font-size: 1.5rem;
|
| 1689 |
-
font-weight: 700;
|
| 1690 |
-
color: #2c3e50;
|
| 1691 |
-
text-align: center;
|
| 1692 |
-
margin-bottom: 1.5rem;
|
| 1693 |
-
}
|
| 1694 |
-
.subtitle {
|
| 1695 |
-
font-size: 0.1rem;
|
| 1696 |
-
color: #7f8c8d;
|
| 1697 |
-
text-align: center;
|
| 1698 |
-
margin-bottom: 2rem;
|
| 1699 |
-
}
|
| 1700 |
-
|
| 1701 |
-
.rcard {
|
| 1702 |
-
background: #000055;
|
| 1703 |
-
border-radius: 15px;
|
| 1704 |
-
padding: 2rem;
|
| 1705 |
-
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 1706 |
-
margin-bottom: 1rem;
|
| 1707 |
-
height: 650px;
|
| 1708 |
-
overflow: hidden;
|
| 1709 |
-
}
|
| 1710 |
-
|
| 1711 |
-
.card {
|
| 1712 |
-
background: white;
|
| 1713 |
-
border-radius: 15px;
|
| 1714 |
-
padding: 2rem;
|
| 1715 |
-
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 1716 |
-
margin-bottom: 1rem;
|
| 1717 |
-
}
|
| 1718 |
-
.success-message {
|
| 1719 |
-
color: #27ae60;
|
| 1720 |
-
text-align: center;
|
| 1721 |
-
margin-top: 1rem;
|
| 1722 |
-
}
|
| 1723 |
-
.error-message {
|
| 1724 |
-
color: #e74c3c;
|
| 1725 |
-
text-align: center;
|
| 1726 |
-
margin-top: 1rem;
|
| 1727 |
-
}
|
| 1728 |
-
.footer {
|
| 1729 |
-
text-align: center;
|
| 1730 |
-
margin-top: 1rem;
|
| 1731 |
-
color: #95a5a6;
|
| 1732 |
-
font-size: 0.8rem;
|
| 1733 |
-
}
|
| 1734 |
-
.avatar {
|
| 1735 |
-
width: 50px;
|
| 1736 |
-
height: 50px;
|
| 1737 |
-
border-radius: 50%;
|
| 1738 |
-
margin: 0 auto 1rem auto;
|
| 1739 |
-
display: block;
|
| 1740 |
-
object-fit: cover;
|
| 1741 |
-
border: 3px solid #4a90e2;
|
| 1742 |
-
}
|
| 1743 |
-
|
| 1744 |
-
.avatar:hover {
|
| 1745 |
-
transform: scale(1.2);
|
| 1746 |
-
border: 3px solid #4a90e2;
|
| 1747 |
-
}
|
| 1748 |
-
.gr-button {
|
| 1749 |
-
width: 100%;
|
| 1750 |
-
border-radius: 10px;
|
| 1751 |
-
padding: 10px;
|
| 1752 |
-
background-color: #4a90e2;
|
| 1753 |
-
color: white;
|
| 1754 |
-
border: none;
|
| 1755 |
-
font-weight: 500;
|
| 1756 |
-
transition: all 0.3s;
|
| 1757 |
-
}
|
| 1758 |
-
.gr-button:hover {
|
| 1759 |
-
background-color: #357abd;
|
| 1760 |
-
color: lightyellow;
|
| 1761 |
-
transform: translateY(-2px);
|
| 1762 |
-
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 1763 |
-
}
|
| 1764 |
-
.gr-textinput, .gr-textbox {
|
| 1765 |
-
border-radius: 10px;
|
| 1766 |
-
padding: 10px;
|
| 1767 |
-
border: 1px solid #ced4da;
|
| 1768 |
-
}
|
| 1769 |
-
.my-custom-button {
|
| 1770 |
-
background-color: transparent !important; /* 緑色 */
|
| 1771 |
-
color: black !important;
|
| 1772 |
-
padding: 10px 20px !important;
|
| 1773 |
-
border: solid thin black !important;
|
| 1774 |
-
border-radius: 5px !important;
|
| 1775 |
-
cursor: pointer !important;
|
| 1776 |
-
font-size: 16px !important;
|
| 1777 |
-
width: 100%;
|
| 1778 |
-
transition: background-color 0.3s ease !important;
|
| 1779 |
-
}
|
| 1780 |
-
|
| 1781 |
-
.my-custom-button:hover {
|
| 1782 |
-
background-color: #fff5ee !important; /* ホバー時の色 */
|
| 1783 |
-
}
|
| 1784 |
-
""")
|
| 1785 |
-
|
|
|
|
| 1444 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
|
| 1445 |
|
| 1446 |
|
| 1447 |
+
with gr.Blocks(title="パフォーマンス評価", theme=gr.themes.Soft(), css="""footer {visibility: hidden;} #header {display: flex; justify-content: space-between; align-items: center; font-size: 24px; font-weight: bold;} #logo {width: 50px; height: 50px;}
|
| 1448 |
+
.gradio-container {
|
| 1449 |
+
background-color: #f8f9fa;
|
| 1450 |
+
/*width: 100%;
|
| 1451 |
+
height: 100%;
|
| 1452 |
+
background-image: url('https://images.unsplash.com/photo-1527181152855-fc03fc7949c8?auto=format&w=1000&dpr=2');
|
| 1453 |
+
background-size: cover;
|
| 1454 |
+
background-repeat: no-repeat;
|
| 1455 |
+
background-position: center center;*/
|
| 1456 |
+
}
|
| 1457 |
+
.main {
|
| 1458 |
+
background-color: #f8f9fa;
|
| 1459 |
+
}
|
| 1460 |
+
.logo-container {
|
| 1461 |
+
position: absolute;
|
| 1462 |
+
top: 1px;
|
| 1463 |
+
left: 20px;
|
| 1464 |
+
z-index: 1000;
|
| 1465 |
+
}
|
| 1466 |
+
.logo-container img {
|
| 1467 |
+
height: 30px;
|
| 1468 |
+
width: auto;
|
| 1469 |
+
}
|
| 1470 |
+
.title {
|
| 1471 |
+
font-size: 1.5rem;
|
| 1472 |
+
font-weight: 700;
|
| 1473 |
+
color: #2c3e50;
|
| 1474 |
+
text-align: center;
|
| 1475 |
+
margin-bottom: 1.5rem;
|
| 1476 |
+
}
|
| 1477 |
+
.subtitle {
|
| 1478 |
+
font-size: 0.1rem;
|
| 1479 |
+
color: #7f8c8d;
|
| 1480 |
+
text-align: center;
|
| 1481 |
+
margin-bottom: 2rem;
|
| 1482 |
+
}
|
| 1483 |
+
|
| 1484 |
+
.rcard {
|
| 1485 |
+
background: #000055;
|
| 1486 |
+
border-radius: 15px;
|
| 1487 |
+
padding: 2rem;
|
| 1488 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 1489 |
+
margin-bottom: 1rem;
|
| 1490 |
+
height: 650px;
|
| 1491 |
+
overflow: hidden;
|
| 1492 |
+
}
|
| 1493 |
+
|
| 1494 |
+
.card {
|
| 1495 |
+
background: white;
|
| 1496 |
+
border-radius: 15px;
|
| 1497 |
+
padding: 2rem;
|
| 1498 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 1499 |
+
margin-bottom: 1rem;
|
| 1500 |
+
}
|
| 1501 |
+
.success-message {
|
| 1502 |
+
color: #27ae60;
|
| 1503 |
+
text-align: center;
|
| 1504 |
+
margin-top: 1rem;
|
| 1505 |
+
}
|
| 1506 |
+
.error-message {
|
| 1507 |
+
color: #e74c3c;
|
| 1508 |
+
text-align: center;
|
| 1509 |
+
margin-top: 1rem;
|
| 1510 |
+
}
|
| 1511 |
+
.footer {
|
| 1512 |
+
text-align: center;
|
| 1513 |
+
margin-top: 1rem;
|
| 1514 |
+
color: #95a5a6;
|
| 1515 |
+
font-size: 0.8rem;
|
| 1516 |
+
}
|
| 1517 |
+
.avatar {
|
| 1518 |
+
width: 50px;
|
| 1519 |
+
height: 50px;
|
| 1520 |
+
border-radius: 50%;
|
| 1521 |
+
margin: 0 auto 1rem auto;
|
| 1522 |
+
display: block;
|
| 1523 |
+
object-fit: cover;
|
| 1524 |
+
border: 3px solid #4a90e2;
|
| 1525 |
+
}
|
| 1526 |
+
|
| 1527 |
+
.avatar:hover {
|
| 1528 |
+
transform: scale(1.2);
|
| 1529 |
+
border: 3px solid #4a90e2;
|
| 1530 |
+
}
|
| 1531 |
+
.gr-button {
|
| 1532 |
+
width: 100%;
|
| 1533 |
+
border-radius: 10px;
|
| 1534 |
+
padding: 10px;
|
| 1535 |
+
background-color: #4a90e2;
|
| 1536 |
+
color: white;
|
| 1537 |
+
border: none;
|
| 1538 |
+
font-weight: 500;
|
| 1539 |
+
transition: all 0.3s;
|
| 1540 |
+
}
|
| 1541 |
+
.gr-button:hover {
|
| 1542 |
+
background-color: #357abd;
|
| 1543 |
+
color: lightyellow;
|
| 1544 |
+
transform: translateY(-2px);
|
| 1545 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 1546 |
+
}
|
| 1547 |
+
.gr-textinput, .gr-textbox {
|
| 1548 |
+
border-radius: 10px;
|
| 1549 |
+
padding: 10px;
|
| 1550 |
+
border: 1px solid #ced4da;
|
| 1551 |
+
}
|
| 1552 |
+
.my-custom-button {
|
| 1553 |
+
background-color: transparent !important; /* 緑色 */
|
| 1554 |
+
color: black !important;
|
| 1555 |
+
padding: 10px 20px !important;
|
| 1556 |
+
border: solid thin black !important;
|
| 1557 |
+
border-radius: 5px !important;
|
| 1558 |
+
cursor: pointer !important;
|
| 1559 |
+
font-size: 16px !important;
|
| 1560 |
+
width: 100%;
|
| 1561 |
+
transition: background-color 0.3s ease !important;
|
| 1562 |
+
}
|
| 1563 |
+
|
| 1564 |
+
.my-custom-button:hover {
|
| 1565 |
+
background-color: #fff5ee !important; /* ホバー時の色 */
|
| 1566 |
+
}
|
| 1567 |
+
""") as demo:
|
| 1568 |
gr.HTML('<div id="header"><span>🔖 パフォーマンス評価</span><img id="logo" src="https://www.ryhintl.com/images/ryhlogo/ryhlogo.png" width="64" height="64" alt="Logo"></div>')
|
| 1569 |
|
| 1570 |
# State variables
|
|
|
|
| 1606 |
logout_btn = gr.Button("ログアウト")
|
| 1607 |
|
| 1608 |
with gr.Row(visible=True) as filecomp:
|
| 1609 |
+
gr.Textbox(label="サンプル", show_copy_button=True, lines=10, value="""
|
| 1610 |
パフォーマンスレポート
|
| 1611 |
|
| 1612 |
被評価者氏名 田中 太郎
|
|
|
|
| 1760 |
output_text = gr.Textbox(
|
| 1761 |
label="プレ・レビュー・レポート",
|
| 1762 |
lines=10,
|
| 1763 |
+
show_copy_button=True,
|
| 1764 |
interactive=False # Allow user to type
|
| 1765 |
)
|
| 1766 |
|
|
|
|
| 1782 |
outputs=[signin,query,smry,b2]
|
| 1783 |
)
|
| 1784 |
|
| 1785 |
+
demo.launch(favicon_path="favicon.ico")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|