Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,8 @@ import gradio as gr
|
|
| 5 |
api_key = os.environ.get("hf_token_giurimatrix")
|
| 6 |
if api_key is None:
|
| 7 |
raise ValueError("API key non trovata. Configura la variabile d'ambiente hf_token_giurimatrix.")
|
| 8 |
-
|
|
|
|
| 9 |
demo = gr.load("giurimatrix/chatbot", src="spaces", api_key=api_key)
|
| 10 |
demo.launch()
|
| 11 |
|
|
|
|
| 5 |
api_key = os.environ.get("hf_token_giurimatrix")
|
| 6 |
if api_key is None:
|
| 7 |
raise ValueError("API key non trovata. Configura la variabile d'ambiente hf_token_giurimatrix.")
|
| 8 |
+
else
|
| 9 |
+
print("API key=" + api_key )
|
| 10 |
demo = gr.load("giurimatrix/chatbot", src="spaces", api_key=api_key)
|
| 11 |
demo.launch()
|
| 12 |
|