Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
-
|
| 5 |
-
client = InferenceClient("loocorez/reverse-text-warmup")
|
| 6 |
|
| 7 |
def reverse_text(input_text):
|
| 8 |
try:
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
+
token = os.getenv("HF_TOKEN")
|
| 5 |
+
client = InferenceClient("loocorez/reverse-text-warmup", token=token)
|
| 6 |
|
| 7 |
def reverse_text(input_text):
|
| 8 |
try:
|