TAPO
1.0.0
[ICASSP'2025] TAPO的官方實施守則。
我們在“演示”文件夾中提供一個IPYNB文件,以便輕鬆使用Tapo。
要運行提供的代碼段,您需要提供特定的訪問憑據。這是您需要的細分:
擁抱臉部集線器訪問令牌:
login函數中的'YOUR_ACCESS_TOKEN' : from huggingface_hub import login
login ( 'YOUR_ACCESS_TOKEN' , add_to_git_credential = True )OpenAI API密鑰:
OpenAI客戶端設置中,將'YOUR_API_KEY'替換為您的實際API密鑰: from openai import OpenAI
client = OpenAI ( api_key = 'YOUR_API_KEY' )模型ID :
'YOUR_MODEL_ID'替換為特定模型ID: model_id = 'YOUR_MODEL_ID'確保您在環境中設置了這些憑據,以成功身份驗證並運行代碼。
代碼堅固
數據集格式描述
在此代碼庫中,數據集中的每個記錄都以JSON格式存儲,並包含兩個主要answer question以下是格式的詳細說明:
{
"question" : "A robe takes 2 bolts of blue fiber and half that much white fiber. How many bolts in total does it take?" ,
"answer" : "It takes 2/2=<<2/2=1>>1 bolt of white fiber n So the total amount of fabric is 2+1=<<2+1=3>>3 bolts of fabric n #### 3"
}