Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,8 @@ class HaikuGenerator:
|
|
| 25 |
)
|
| 26 |
|
| 27 |
# Extract the generated content
|
| 28 |
-
response = message['choices'][0]['message']['content'
|
|
|
|
| 29 |
|
| 30 |
return response.strip()
|
| 31 |
|
|
@@ -42,9 +43,9 @@ class HaikuGenerator:
|
|
| 42 |
def gradio_interface(self):
|
| 43 |
with gr.Blocks(theme='earneleh/paris', css="style.css") as demo:
|
| 44 |
gr.HTML("""
|
| 45 |
-
<center><h1 style="color:#
|
| 46 |
gr.HTML("""
|
| 47 |
-
<center><h6 style="color:#
|
| 48 |
|
| 49 |
with gr.Column(elem_id="col-container"):
|
| 50 |
haiku_output = gr.Textbox(label="Generated Haiku", interactive=False)
|
|
|
|
| 25 |
)
|
| 26 |
|
| 27 |
# Extract the generated content
|
| 28 |
+
response = message['choices'][0]['message']['content'
|
| 29 |
+
]
|
| 30 |
|
| 31 |
return response.strip()
|
| 32 |
|
|
|
|
| 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("""
|
| 48 |
+
<center><h6 style="color:#C73E3A">Generate a Haiku poem and an image based on it</h6></center>""")
|
| 49 |
|
| 50 |
with gr.Column(elem_id="col-container"):
|
| 51 |
haiku_output = gr.Textbox(label="Generated Haiku", interactive=False)
|