huathedev commited on
Commit
2752b73
1 Parent(s): a2a5285

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -25,8 +25,7 @@ class HaikuGenerator:
25
  )
26
 
27
  # Extract the generated content
28
- response = message['choices'][0]['message']['content'
29
- ]
30
 
31
  return response.strip()
32
 
@@ -41,7 +40,20 @@ class HaikuGenerator:
41
  return image
42
 
43
  def gradio_interface(self):
44
- with gr.Blocks(theme='earneleh/paris', css="style.css") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  gr.HTML("""
46
  <center><h1 style="color:#C73E3A">HaiKool - Haiku Poem and Image Generator</h1></center>""")
47
  gr.HTML("""
 
25
  )
26
 
27
  # Extract the generated content
28
+ response = message['choices'][0]['message']['content']
 
29
 
30
  return response.strip()
31
 
 
40
  return image
41
 
42
  def gradio_interface(self):
43
+ # Custom CSS to apply a Japanese-style font
44
+ custom_css = """
45
+ body {
46
+ font-family: 'Sawarabi Mincho', serif !important;
47
+ }
48
+ h1, h6 {
49
+ font-family: 'Sawarabi Mincho', serif !important;
50
+ }
51
+ .button {
52
+ font-family: 'Sawarabi Mincho', serif !important;
53
+ }
54
+ """
55
+
56
+ with gr.Blocks(theme='earneleh/paris', css=custom_css) as demo:
57
  gr.HTML("""
58
  <center><h1 style="color:#C73E3A">HaiKool - Haiku Poem and Image Generator</h1></center>""")
59
  gr.HTML("""