TooKeen commited on
Commit
086e6de
·
verified ·
1 Parent(s): 566c99c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -6,6 +6,9 @@ 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 und starte die Gradio-App
10
- gr.load("TooKeen/neo-blockchain-assistant", api_key=hf_token).launch()
11
-
 
 
 
 
6
  if hf_token is None:
7
  raise ValueError("HF_TOKEN is not set. Please check your secrets.")
8
 
9
+ # Lade das Modell korrekt mit dem `src`-Parameter
10
+ gr.Interface.load(
11
+ src="huggingface", # Angabe, dass das Modell von Hugging Face geladen wird
12
+ model_name="TooKeen/neo-blockchain-assistant",
13
+ api_key=hf_token
14
+ ).launch()