Spaces:
				
			
			
	
			
			
		Paused
		
	
	
	
			
			
	
	
	
	
		
		
		Paused
		
	File size: 348 Bytes
			
			0c3e3b2  | 
								1 2 3 4 5 6 7 8 9 10 11 12  | 
								import { base } from "$app/paths";
import type { Client } from "@gradio/client";
export type ApiReturnType = Awaited<ReturnType<typeof Client.prototype.view_api>>;
export async function getGradioApi(space: string) {
	const api: ApiReturnType = await fetch(`${base}/api/spaces-config?space=${space}`).then((res) =>
		res.json()
	);
	return api;
}
 |