TooKeen commited on
Commit
653b249
·
verified ·
1 Parent(s): 0bf4b01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -1,16 +1,7 @@
1
  import gradio as gr
2
- import os
3
 
4
- # Hole den API-Key aus den Umgebungsvariablen
5
- 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 von Hugging Face
10
- interface = gr.Interface.load(
11
- "huggingface/TooKeen/neo-blockchain-assistant",
12
- api_key=hf_token
13
- )
14
 
15
  # Starte die Gradio-App
16
  interface.launch()
 
1
  import gradio as gr
 
2
 
3
+ # Lade das Modell von Hugging Face
4
+ interface = gr.Interface.load("huggingface/TooKeen/neo-blockchain-assistant")
 
 
 
 
 
 
 
 
5
 
6
  # Starte die Gradio-App
7
  interface.launch()