public_chatbot / app.py
Serializable's picture
Update app.py
17f4053 verified
raw
history blame
341 Bytes
#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()