File size: 341 Bytes
9bd4856
cb24303
e755899
04d5e4f
 
 
 
17f4053
8d7b0ff
04d5e4f
 
cb24303
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#try to rebuilt
import os
import gradio as gr

api_key = os.environ.get("hf_token_giurimatrix")
if api_key is None:
    raise ValueError("API key non trovata. Configura la variabile d'ambiente hf_token_giurimatrix.")
else:
    print(f"API key={api_key}" )
demo = gr.load("giurimatrix/chatbot", src="spaces", api_key=api_key)
demo.launch()