Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2672,9 +2672,26 @@ async def whisper_realtime_stream(session_id: str):
|
|
2672 |
@app.get("/")
|
2673 |
async def index():
|
2674 |
"""Serve the HTML page"""
|
2675 |
-
|
2676 |
-
|
2677 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2678 |
|
2679 |
|
2680 |
if __name__ == "__main__":
|
|
|
2672 |
@app.get("/")
|
2673 |
async def index():
|
2674 |
"""Serve the HTML page"""
|
2675 |
+
try:
|
2676 |
+
# 간단한 테스트 HTML 반환
|
2677 |
+
return HTMLResponse(content="""
|
2678 |
+
<!DOCTYPE html>
|
2679 |
+
<html>
|
2680 |
+
<head>
|
2681 |
+
<title>Test</title>
|
2682 |
+
</head>
|
2683 |
+
<body>
|
2684 |
+
<h1>서버 작동 확인</h1>
|
2685 |
+
<button onclick="alert('클릭됨')">테스트</button>
|
2686 |
+
<script>
|
2687 |
+
console.log('JavaScript 실행됨');
|
2688 |
+
document.body.style.backgroundColor = 'yellow';
|
2689 |
+
</script>
|
2690 |
+
</body>
|
2691 |
+
</html>
|
2692 |
+
""")
|
2693 |
+
except Exception as e:
|
2694 |
+
return JSONResponse({"error": str(e)}, status_code=500)
|
2695 |
|
2696 |
|
2697 |
if __name__ == "__main__":
|