Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
def respond(
|
|
|
|
| 1 |
+
import os
|
| 2 |
import gradio as gr
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
|
| 5 |
|
| 6 |
+
hf_token = os.environ["HUGGINGFACEHUB_API_TOKEN"]
|
| 7 |
+
client = InferenceClient("MaxLSB/LeCarnet-8M", token=hf_token)
|
| 8 |
|
| 9 |
|
| 10 |
def respond(
|