Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from io import BytesIO
|
|
5 |
import os
|
6 |
from PIL import Image
|
7 |
|
8 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
9 |
api_key = os.environ.get('API_KEY')
|
10 |
headers = {"Authorization": f"Bearer {api_key}"}
|
11 |
|
@@ -53,7 +53,7 @@ def generate_image_from_prompt(prompt_text):
|
|
53 |
pil_img = Image.open(img) # Open the image using PIL library
|
54 |
return pil_img # Return the converted PIL image
|
55 |
|
56 |
-
title = "
|
57 |
description = "This app uses Hugging Face AI model to generate an image based on the provided text prompt 🖼."
|
58 |
|
59 |
input_prompt = gr.Textbox(label="Enter Prompt 📝", placeholder="E.g. 'Astronaut riding a horse'")
|
|
|
5 |
import os
|
6 |
from PIL import Image
|
7 |
|
8 |
+
API_URL = "https://api-inference.huggingface.co/models/kviai/3d-icons"
|
9 |
api_key = os.environ.get('API_KEY')
|
10 |
headers = {"Authorization": f"Bearer {api_key}"}
|
11 |
|
|
|
53 |
pil_img = Image.open(img) # Open the image using PIL library
|
54 |
return pil_img # Return the converted PIL image
|
55 |
|
56 |
+
title = "3D Icons SDXL Demo 🎨"
|
57 |
description = "This app uses Hugging Face AI model to generate an image based on the provided text prompt 🖼."
|
58 |
|
59 |
input_prompt = gr.Textbox(label="Enter Prompt 📝", placeholder="E.g. 'Astronaut riding a horse'")
|