Spaces:
Sleeping
Sleeping
Commit
·
9570b85
1
Parent(s):
666a247
local API key
Browse files
app.py
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
|
|
3 |
|
4 |
-
""
|
5 |
-
|
6 |
-
"""
|
7 |
-
client = InferenceClient("microsoft/Phi-4-mini-instruct")
|
8 |
-
|
9 |
|
10 |
def respond(
|
11 |
message,
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
+
import os
|
4 |
|
5 |
+
HF_API_KEY = os.getenv("HF_API_KEY")
|
6 |
+
client = InferenceClient("microsoft/Phi-4-mini-instruct", token=HF_API_KEY)
|
|
|
|
|
|
|
7 |
|
8 |
def respond(
|
9 |
message,
|