Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,11 @@ hf_token = os.getenv("HF_TOKEN")
|
|
6 |
if hf_token is None:
|
7 |
raise ValueError("HF_TOKEN is not set. Please check your secrets.")
|
8 |
|
9 |
-
# Lade das Modell korrekt
|
10 |
-
gr.
|
11 |
-
|
12 |
-
model_name="TooKeen/neo-blockchain-assistant",
|
13 |
api_key=hf_token
|
14 |
-
)
|
|
|
|
|
|
|
|
6 |
if hf_token is None:
|
7 |
raise ValueError("HF_TOKEN is not set. Please check your secrets.")
|
8 |
|
9 |
+
# Lade das Modell korrekt von Hugging Face
|
10 |
+
interface = gr.load(
|
11 |
+
"huggingface/TooKeen/neo-blockchain-assistant",
|
|
|
12 |
api_key=hf_token
|
13 |
+
)
|
14 |
+
|
15 |
+
# Starte die Gradio-App
|
16 |
+
interface.launch()
|