Spaces:
Paused
Paused
Download test_simple.py from 54justin/591Analyzer: direct link, hf CLI and curl.
- Browser
- Download file 901 Bytes
-
https://huggingface.co/spaces/54justin/591Analyzer/resolve/main/test_simple.py
- Command line
-
hf download hf://spaces/54justin/591Analyzer/test_simple.py
-
curl -L -o test_simple.py https://huggingface.co/spaces/54justin/591Analyzer/resolve/main/test_simple.py
901 Bytes
| # �� Copilot �ͦ� | |
| # ²�檺�ɤJ���� | |
| try: | |
| import gradio as gr | |
| print("? Gradio �ɤJ���\") | |
| except Exception as e: | |
| print(f"? Gradio �ɤJ����: {e}") | |
| try: | |
| import pandas as pd | |
| print("? Pandas �ɤJ���\") | |
| except Exception as e: | |
| print(f"? Pandas �ɤJ����: {e}") | |
| try: | |
| import numpy as np | |
| print("? NumPy �ɤJ���\") | |
| except Exception as e: | |
| print(f"? NumPy �ɤJ����: {e}") | |
| print("? �̿��ˬd����") | |
| # ���հ\�� | |
| 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"���տ�J: {x}", | |
| inputs="text", | |
| outputs="text" | |
| ) | |
| print("? Gradio �����Ыئ��\") | |
| except Exception as e: | |
| print(f"? Gradio �������ե���: {e}") | |
| print("? 591���Τ��R�� - �ɤJ���է���") |