Spaces:
Runtime error
Runtime error
#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() | |