Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,11 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
from gradio_client import Client
|
| 3 |
|
| 4 |
-
client = Client("https://fffiloni-gradio-api-tests.hf.space/")
|
| 5 |
|
| 6 |
examples = [
|
| 7 |
"examples/image.jpg",
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
|
| 3 |
+
import os
|
| 4 |
+
hf_token = os.environ.get("HF_TOKEN")
|
| 5 |
+
|
| 6 |
from gradio_client import Client
|
| 7 |
|
| 8 |
+
client = Client("https://fffiloni-gradio-api-tests.hf.space/", hf_token=hf_token)
|
| 9 |
|
| 10 |
examples = [
|
| 11 |
"examples/image.jpg",
|