demetz commited on
Commit
2fced36
·
verified ·
1 Parent(s): 179e288

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -10
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
- .alignment_radio{
63
- color: red;
64
- }
 
 
 
 
 
 
65
  """
66
 
67
- with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Tangerine")])) as chatbot:
68
- with gr.Row(max_height=150):
 
 
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=5):
78
- gr.Markdown("""# Gorf's Character Creator""")
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:[email protected]&family=Marcellus&family=Noto+Sans+Mono:[email protected]&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