Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import os
|
| 4 |
|
| 5 |
-
client = InferenceClient(token=os.getenv("
|
| 6 |
|
| 7 |
def generate_caption(prompt):
|
| 8 |
prompt = f"Write 3 short luxury Instagram captions for: {prompt}. Keep them elegant and minimal."
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import os
|
| 4 |
|
| 5 |
+
client = InferenceClient(token=os.getenv("HF_TOKEN"))
|
| 6 |
|
| 7 |
def generate_caption(prompt):
|
| 8 |
prompt = f"Write 3 short luxury Instagram captions for: {prompt}. Keep them elegant and minimal."
|