# 由 Copilot 生成 # 簡單的導入測試 try: import gradio as gr print("? Gradio 導入成功") except Exception as e: print(f"? Gradio 導入失敗: {e}") try: import pandas as pd print("? Pandas 導入成功") except Exception as e: print(f"? Pandas 導入失敗: {e}") try: import numpy as np print("? NumPy 導入成功") except Exception as e: print(f"? NumPy 導入失敗: {e}") print("? 基本依賴檢查完成") # 測試基本功能 try: df = pd.DataFrame({'test': [1, 2, 3]}) print(f"? DataFrame 創建成功: {len(df)} 行") except Exception as e: print(f"? DataFrame 測試失敗: {e}") try: demo = gr.Interface( fn=lambda x: f"測試輸入: {x}", inputs="text", outputs="text" ) print("? Gradio 介面創建成功") except Exception as e: print(f"? Gradio 介面測試失敗: {e}") print("? 591租屋分析器 - 導入測試完成")