Spaces:
Running
Running
snowkylin
commited on
Commit
·
919ffc2
1
Parent(s):
d5ee2a4
update readme
Browse files
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
title: Refsheet Chat
|
3 |
-
emoji:
|
4 |
colorFrom: gray
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
@@ -11,7 +11,7 @@ license: mit
|
|
11 |
short_description: Chat with a character via reference sheet!
|
12 |
---
|
13 |
|
14 |
-
# Chat
|
15 |
|
16 |
A demo of [Gemma 3](https://blog.google/technology/developers/gemma-3/), demonstrating its excellent vision and multilingual capability.
|
17 |
|
|
|
1 |
---
|
2 |
title: Refsheet Chat
|
3 |
+
emoji: 💬
|
4 |
colorFrom: gray
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
|
|
11 |
short_description: Chat with a character via reference sheet!
|
12 |
---
|
13 |
|
14 |
+
# Chat via Reference Sheet
|
15 |
|
16 |
A demo of [Gemma 3](https://blog.google/technology/developers/gemma-3/), demonstrating its excellent vision and multilingual capability.
|
17 |
|
app.py
CHANGED
@@ -34,6 +34,7 @@ lang_store = {
|
|
34 |
"confirm": "Confirm",
|
35 |
"default_description": "",
|
36 |
"additional_description": "Character description (optional)",
|
|
|
37 |
"more_imgs": "More reference images of the character (optional)",
|
38 |
"title": "<h1>Chat with a character via reference sheet!</h1>>",
|
39 |
"powered_by_gemma": "<p>Powered by <a href='https://blog.google/technology/developers/gemma-3/'>Gemma 3</a></p",
|
@@ -54,6 +55,7 @@ lang_store = {
|
|
54 |
"confirm": "确认",
|
55 |
"default_description": "",
|
56 |
"additional_description": "角色描述(可选)",
|
|
|
57 |
"more_imgs": "更多角色参考图(可选,可上传多张)",
|
58 |
"title": "<h1>与设定图中的角色聊天!</h1>",
|
59 |
"powered_by_gemma": "<p>由 <a href='https://blog.google/technology/developers/gemma-3/'>Gemma 3</a> 驱动</p>",
|
@@ -165,7 +167,12 @@ with gr.Blocks(title="Chat with a character via reference sheet!") as demo:
|
|
165 |
with Translate(lang_store) as lang:
|
166 |
gr.HTML(_("title"))
|
167 |
img = gr.Image(type="filepath", value=default_img, label=_("upload"), render=False)
|
168 |
-
description = gr.TextArea(
|
|
|
|
|
|
|
|
|
|
|
169 |
more_imgs = gr.Files(
|
170 |
label=_("more_imgs"),
|
171 |
file_types=["image"],
|
|
|
34 |
"confirm": "Confirm",
|
35 |
"default_description": "",
|
36 |
"additional_description": "Character description (optional)",
|
37 |
+
"description_placeholder": "Information that is not shown in the reference sheet, such as the character's name, personality, past stories and habit of saying.",
|
38 |
"more_imgs": "More reference images of the character (optional)",
|
39 |
"title": "<h1>Chat with a character via reference sheet!</h1>>",
|
40 |
"powered_by_gemma": "<p>Powered by <a href='https://blog.google/technology/developers/gemma-3/'>Gemma 3</a></p",
|
|
|
55 |
"confirm": "确认",
|
56 |
"default_description": "",
|
57 |
"additional_description": "角色描述(可选)",
|
58 |
+
"description_placeholder": "未在设定图中包含的角色信息,如角色名称、性格、言语习惯、过往经历等。",
|
59 |
"more_imgs": "更多角色参考图(可选,可上传多张)",
|
60 |
"title": "<h1>与设定图中的角色聊天!</h1>",
|
61 |
"powered_by_gemma": "<p>由 <a href='https://blog.google/technology/developers/gemma-3/'>Gemma 3</a> 驱动</p>",
|
|
|
167 |
with Translate(lang_store) as lang:
|
168 |
gr.HTML(_("title"))
|
169 |
img = gr.Image(type="filepath", value=default_img, label=_("upload"), render=False)
|
170 |
+
description = gr.TextArea(
|
171 |
+
value=_("default_description"),
|
172 |
+
label=_("additional_description"),
|
173 |
+
placeholder=_("description_placeholder"),
|
174 |
+
render=False
|
175 |
+
)
|
176 |
more_imgs = gr.Files(
|
177 |
label=_("more_imgs"),
|
178 |
file_types=["image"],
|