Spaces:
Runtime error
Runtime error
File size: 508 Bytes
1ab212a fef4473 02bf303 0f7f7be bf3f6c0 1ab212a eed3784 99c241a 02bf303 99c241a e55082e 2b821ac 1ab212a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from gradio_client import Client
import json
import os
HF_TOKEN = os.environ.get("hfkey")
credentials_json = os.environ.get("CREDENTIALS")
if credentials_json is None:
print("Error: Please set the CREDENTIALS")
else:
credentials = json.loads(credentials_json)
gr.load(name="spaces/bentobytes/LawGPT", HF_TOKEN=HF_TOKEN).launch(auth=credentials)
# client = Client("bentobytes/LawGPT", hf_token=HF_TOKEN)
# client = Client.duplicate("bentobytes/LawGPT", hf_token=HF_TOKEN) |