Spaces:
Runtime error
Runtime error
Rename app (43).py.txt to app.py
Browse files- app (43).py.txt → app.py +11 -0
app (43).py.txt → app.py
RENAMED
@@ -93,11 +93,22 @@ def aip(ill,api_name="/run"):
|
|
93 |
def pit(ill,api_name="/predict"):
|
94 |
return
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
with gr.Blocks(theme=random.choice([gr.themes.Monochrome(),gr.themes.Base.from_hub("gradio/seafoam"),gr.themes.Base.from_hub("freddyaboulton/dracula_revamped"),gr.themes.Glass(),gr.themes.Base(),]),analytics_enabled=False) as iface:
|
97 |
##iface.description="Running on cpu, very slow! by JoPmt."
|
98 |
out=gr.Gallery(label="Generated Output Image", columns=1)
|
99 |
inut=gr.Textbox(label="Prompt",value="")
|
100 |
gaul=gr.Textbox(visible=False)
|
|
|
101 |
btn=gr.Button("GENERATE")
|
102 |
with gr.Accordion("Advanced Settings", open=False):
|
103 |
inet=gr.Textbox(label="Negative_prompt", value="lowres,text,bad quality,low quality,jpeg artifacts,ugly,bad hands,bad face,blurry,bad eyes,watermark,signature")
|
|
|
93 |
def pit(ill,api_name="/predict"):
|
94 |
return
|
95 |
|
96 |
+
info="""
|
97 |
+
<div>
|
98 |
+
<text>
|
99 |
+
This is a demo of Flux.1-schnell on CPU.
|
100 |
+
This space uses stable-diffusion.cpp by leejet.
|
101 |
+
</text>
|
102 |
+
<img src=''></img>
|
103 |
+
</div>
|
104 |
+
"""
|
105 |
+
|
106 |
with gr.Blocks(theme=random.choice([gr.themes.Monochrome(),gr.themes.Base.from_hub("gradio/seafoam"),gr.themes.Base.from_hub("freddyaboulton/dracula_revamped"),gr.themes.Glass(),gr.themes.Base(),]),analytics_enabled=False) as iface:
|
107 |
##iface.description="Running on cpu, very slow! by JoPmt."
|
108 |
out=gr.Gallery(label="Generated Output Image", columns=1)
|
109 |
inut=gr.Textbox(label="Prompt",value="")
|
110 |
gaul=gr.Textbox(visible=False)
|
111 |
+
gr.HTML(info)
|
112 |
btn=gr.Button("GENERATE")
|
113 |
with gr.Accordion("Advanced Settings", open=False):
|
114 |
inet=gr.Textbox(label="Negative_prompt", value="lowres,text,bad quality,low quality,jpeg artifacts,ugly,bad hands,bad face,blurry,bad eyes,watermark,signature")
|