CoolFace
Apppublic

dokasuka/PaperScope.ai

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
tmp.py23 linesDownload Raw Back to root
1import requests2import pandas as pd3 4# エンドポイントURL(実際のスペースURLに置き換えてください)5url = "https://huggingface.co/spaces/dokasuka/PaperScope.ai/export"6 7# GETリクエストを送信8response = requests.get(url)9 10# HTTPステータスコードを確認11if response.status_code != 200:12    print("エラー発生: HTTPステータスコード", response.status_code)13    #print("レスポンス内容:", response.text)14else:15    try:16        # JSONのパース17        data = response.json()18        # DataFrameに変換19        df = pd.DataFrame(data)20        print(df.head())21    except Exception as e:22        print("JSONパースエラー:", e)23        #print("レスポンス内容:", response.text)