Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ from langdetect import detect
|
|
10 |
|
11 |
api_base = os.getenv("API_BASE")
|
12 |
mmodels = {
|
|
|
13 |
"DALL-E 3 XL": "openskyml/dalle-3-xl",
|
14 |
"Playground 2": "playgroundai/playground-v2-1024px-aesthetic",
|
15 |
"Openjourney 4": "prompthero/openjourney-v4",
|
@@ -150,7 +151,7 @@ with gr.Blocks(css=css) as dalle:
|
|
150 |
with gr.Row():
|
151 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
|
152 |
with gr.Row():
|
153 |
-
model = gr.Radio(label="Модель", value="
|
154 |
|
155 |
|
156 |
|
|
|
10 |
|
11 |
api_base = os.getenv("API_BASE")
|
12 |
mmodels = {
|
13 |
+
"OpenDALL-E 1.1": "dataautogpt3/OpenDalleV1.1",
|
14 |
"DALL-E 3 XL": "openskyml/dalle-3-xl",
|
15 |
"Playground 2": "playgroundai/playground-v2-1024px-aesthetic",
|
16 |
"Openjourney 4": "prompthero/openjourney-v4",
|
|
|
151 |
with gr.Row():
|
152 |
text_prompt = gr.Textbox(label="Prompt", placeholder="Описание изображения", lines=3, elem_id="prompt-text-input")
|
153 |
with gr.Row():
|
154 |
+
model = gr.Radio(label="Модель", value="OpenDALL-E 1.1", choices=list(mmodels.keys()))
|
155 |
|
156 |
|
157 |
|