Update app.py
Browse files
app.py
CHANGED
|
@@ -57,25 +57,31 @@ def respond(message, history, name, char_class, char_alignment):
|
|
| 57 |
|
| 58 |
# === GUI ===
|
| 59 |
|
| 60 |
-
chat_css="""
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
"""
|
| 66 |
|
| 67 |
-
with gr.Blocks(
|
| 68 |
-
|
|
|
|
|
|
|
| 69 |
with gr.Column(scale=1):
|
| 70 |
gr.Image(
|
| 71 |
value="frog.png",
|
| 72 |
show_label=False,
|
| 73 |
show_share_button=False,
|
| 74 |
-
show_download_button=False
|
| 75 |
-
fill_height=True
|
| 76 |
)
|
| 77 |
-
with gr.Column(scale=
|
| 78 |
-
gr.Markdown(""
|
| 79 |
|
| 80 |
with gr.Row():
|
| 81 |
|
|
|
|
| 57 |
|
| 58 |
# === GUI ===
|
| 59 |
|
|
|
|
| 60 |
|
| 61 |
+
google_font_link = """
|
| 62 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 63 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 64 |
+
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Marcellus&family=Noto+Sans+Mono:wght@100..900&family=Tangerine:wght@400;700&display=swap" rel="stylesheet">
|
| 65 |
+
<style>
|
| 66 |
+
body, h1, h2, h3, h4, h5, h6, p, .gorf-font {
|
| 67 |
+
font-family: 'Tangerine';
|
| 68 |
+
}
|
| 69 |
+
</style>
|
| 70 |
"""
|
| 71 |
|
| 72 |
+
with gr.Blocks() as chatbot:
|
| 73 |
+
gr.HTML(google_font_link)
|
| 74 |
+
|
| 75 |
+
with gr.Row():
|
| 76 |
with gr.Column(scale=1):
|
| 77 |
gr.Image(
|
| 78 |
value="frog.png",
|
| 79 |
show_label=False,
|
| 80 |
show_share_button=False,
|
| 81 |
+
show_download_button=False
|
|
|
|
| 82 |
)
|
| 83 |
+
with gr.Column(scale=10):
|
| 84 |
+
gr.Markdown('<h1 class="gorf-font">Gorf\'s Character Creator</h1>')
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
|