Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoConfig, AutoModelForCausalLM
|
|
4 |
from janus.models import MultiModalityCausalLM, VLChatProcessor
|
5 |
from PIL import Image
|
6 |
import numpy as np
|
7 |
-
import spaces
|
8 |
|
9 |
# Load the model and processor
|
10 |
model_path = "deepseek-ai/Janus-Pro-7B"
|
@@ -106,9 +106,7 @@ def create_interface():
|
|
106 |
Welcome to the Janus-Pro-7B Text-to-Image Generator! This advanced AI model by DeepSeek offers state-of-the-art capabilities in generating images from textual descriptions. Leveraging a unified multimodal framework, Janus-Pro-7B excels in both understanding and generating content, providing detailed and accurate visual representations based on your prompts.
|
107 |
|
108 |
**Key Features:**
|
109 |
-
- **Unified Multimodal Framework:** Integrates visual encoding and language processing for seamless understanding and generation.
|
110 |
- **High-Quality Image Generation:** Produces stable and detailed images that often surpass those from other leading models.
|
111 |
-
- **Flexible and Efficient:** Designed for a wide range of applications, from creative image generation to detailed visualizations.
|
112 |
|
113 |
For more information about Janus-Pro-7B, visit the [official Hugging Face model page](https://huggingface.co/deepseek-ai/Janus-Pro-7B).
|
114 |
""")
|
|
|
4 |
from janus.models import MultiModalityCausalLM, VLChatProcessor
|
5 |
from PIL import Image
|
6 |
import numpy as np
|
7 |
+
import spaces
|
8 |
|
9 |
# Load the model and processor
|
10 |
model_path = "deepseek-ai/Janus-Pro-7B"
|
|
|
106 |
Welcome to the Janus-Pro-7B Text-to-Image Generator! This advanced AI model by DeepSeek offers state-of-the-art capabilities in generating images from textual descriptions. Leveraging a unified multimodal framework, Janus-Pro-7B excels in both understanding and generating content, providing detailed and accurate visual representations based on your prompts.
|
107 |
|
108 |
**Key Features:**
|
|
|
109 |
- **High-Quality Image Generation:** Produces stable and detailed images that often surpass those from other leading models.
|
|
|
110 |
|
111 |
For more information about Janus-Pro-7B, visit the [official Hugging Face model page](https://huggingface.co/deepseek-ai/Janus-Pro-7B).
|
112 |
""")
|