Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
|
|
6 |
import gradio as gr
|
7 |
from pathlib import Path
|
8 |
from zipfile import ZipFile
|
9 |
-
|
10 |
from huggingface_hub import (create_repo,get_full_repo_name,upload_file,CommitOperationAdd,HfApi)
|
11 |
uid = uuid.uuid4()
|
12 |
|
@@ -420,13 +420,13 @@ def up_c(im,c_slider):
|
|
420 |
return out
|
421 |
|
422 |
text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link",live=True, preprocess=True)
|
423 |
-
im_gen=gr.Interface.load("spaces/Omnibus/Diffusionator-mod")
|
424 |
def get_prompts(prompt_text):
|
425 |
gen=text_gen(prompt_text)
|
426 |
return gen
|
427 |
|
428 |
def gen_im(prompt,model_choice=5,count=1):
|
429 |
-
out =
|
430 |
return out
|
431 |
|
432 |
|
|
|
6 |
import gradio as gr
|
7 |
from pathlib import Path
|
8 |
from zipfile import ZipFile
|
9 |
+
import dif
|
10 |
from huggingface_hub import (create_repo,get_full_repo_name,upload_file,CommitOperationAdd,HfApi)
|
11 |
uid = uuid.uuid4()
|
12 |
|
|
|
420 |
return out
|
421 |
|
422 |
text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link",live=True, preprocess=True)
|
423 |
+
#im_gen=gr.Interface.load("spaces/Omnibus/Diffusionator-mod")
|
424 |
def get_prompts(prompt_text):
|
425 |
gen=text_gen(prompt_text)
|
426 |
return gen
|
427 |
|
428 |
def gen_im(prompt,model_choice=5,count=1):
|
429 |
+
out = dif.sendit(prompt,5,count)
|
430 |
return out
|
431 |
|
432 |
|