seawolf2357 commited on
Commit
2dd1207
·
verified ·
1 Parent(s): 701a528

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -3
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
- rtc_config = get_twilio_turn_credentials() if get_space() else None
2676
- html_content = HTML_CONTENT.replace("__RTC_CONFIGURATION__", json.dumps(rtc_config))
2677
- return HTMLResponse(content=html_content)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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__":