lixiang46
commited on
Commit
•
2225ed3
1
Parent(s):
0125eb2
update
Browse files- app.py +6 -2
- requirements.txt +1 -1
app.py
CHANGED
@@ -101,8 +101,9 @@ def infer(prompt,
|
|
101 |
|
102 |
examples = [
|
103 |
["一张瓢虫的照片,微距,变焦,高质量,电影,拿着一个牌子,写着“可图”", None, None],
|
|
|
104 |
["穿着黑色T恤衫,上面中文绿色大字写着“可图”", "image/test_ip.jpg", 0.5],
|
105 |
-
["
|
106 |
]
|
107 |
|
108 |
css="""
|
@@ -114,11 +115,14 @@ css="""
|
|
114 |
margin: 0 auto;
|
115 |
max-width: 750px;
|
116 |
}
|
|
|
|
|
|
|
117 |
"""
|
118 |
|
119 |
with gr.Blocks(css=css) as demo:
|
120 |
with gr.Row():
|
121 |
-
with gr.Column():
|
122 |
gr.Markdown(f"""
|
123 |
# Kolors
|
124 |
""")
|
|
|
101 |
|
102 |
examples = [
|
103 |
["一张瓢虫的照片,微距,变焦,高质量,电影,拿着一个牌子,写着“可图”", None, None],
|
104 |
+
["3D anime style, hyperrealistic oil painting, dolphin leaping out of the water", None, None],
|
105 |
["穿着黑色T恤衫,上面中文绿色大字写着“可图”", "image/test_ip.jpg", 0.5],
|
106 |
+
["A cute dog is running.", "image/test_ip2.png", 0.5]
|
107 |
]
|
108 |
|
109 |
css="""
|
|
|
115 |
margin: 0 auto;
|
116 |
max-width: 750px;
|
117 |
}
|
118 |
+
#title {
|
119 |
+
margin: 0 auto;
|
120 |
+
}
|
121 |
"""
|
122 |
|
123 |
with gr.Blocks(css=css) as demo:
|
124 |
with gr.Row():
|
125 |
+
with gr.Column(elem_id='title'):
|
126 |
gr.Markdown(f"""
|
127 |
# Kolors
|
128 |
""")
|
requirements.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
accelerate==0.27.2
|
2 |
diffusers==0.28.2
|
3 |
invisible_watermark==0.2.0
|
4 |
-
torch
|
5 |
transformers==4.42.4
|
6 |
sentencepiece==0.1.99
|
7 |
gradio==4.38.1
|
|
|
1 |
accelerate==0.27.2
|
2 |
diffusers==0.28.2
|
3 |
invisible_watermark==0.2.0
|
4 |
+
torch==2.2.0
|
5 |
transformers==4.42.4
|
6 |
sentencepiece==0.1.99
|
7 |
gradio==4.38.1
|