Spaces:
Runtime error
Runtime error
Serializable
commited on
Commit
•
17f4053
1
Parent(s):
8d7b0ff
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ 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 |
-
else
|
9 |
print(f"API key={api_key}" )
|
10 |
demo = gr.load("giurimatrix/chatbot", src="spaces", api_key=api_key)
|
11 |
demo.launch()
|
|
|
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(f"API key={api_key}" )
|
10 |
demo = gr.load("giurimatrix/chatbot", src="spaces", api_key=api_key)
|
11 |
demo.launch()
|