Update main.py
Browse files
main.py
CHANGED
|
@@ -17,7 +17,7 @@ from deep_translator import GoogleTranslator
|
|
| 17 |
|
| 18 |
app = FastAPI()
|
| 19 |
|
| 20 |
-
API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2-1024px-aesthetic"
|
| 21 |
API_TOKEN = os.getenv("HF_READ_TOKEN") # it is free
|
| 22 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
| 23 |
|
|
|
|
| 17 |
|
| 18 |
app = FastAPI()
|
| 19 |
|
| 20 |
+
API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2.5-1024px-aesthetic"
|
| 21 |
API_TOKEN = os.getenv("HF_READ_TOKEN") # it is free
|
| 22 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
| 23 |
|