File size: 901 Bytes
101f06b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# �� 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���է���")