Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def generate_and_upload(prompt: str, model_name: str, api_key: str):
|
|
| 63 |
|
| 64 |
# Gradio UI
|
| 65 |
with gr.Blocks(theme='NoCrypt/miku') as app:
|
| 66 |
-
gr.
|
| 67 |
"""
|
| 68 |
<style>
|
| 69 |
.centered-title {
|
|
@@ -76,8 +76,7 @@ with gr.Blocks(theme='NoCrypt/miku') as app:
|
|
| 76 |
<hr style='color: red;'>
|
| 77 |
<h1 class='centered-title'>♥ Tasia API on Marty Space ♥</h1>
|
| 78 |
<hr style='color: red;'>
|
| 79 |
-
"""
|
| 80 |
-
unsafe_allow_html=True
|
| 81 |
)
|
| 82 |
|
| 83 |
gr.Markdown("<hr style='color: red;'>")
|
|
@@ -95,7 +94,7 @@ with gr.Blocks(theme='NoCrypt/miku') as app:
|
|
| 95 |
inputs=[prompt_input, model_input, api_key_input],
|
| 96 |
outputs=[image_output, url_output]
|
| 97 |
)
|
| 98 |
-
|
| 99 |
"""
|
| 100 |
<style>
|
| 101 |
.centered-title {
|
|
@@ -108,7 +107,6 @@ with gr.Blocks(theme='NoCrypt/miku') as app:
|
|
| 108 |
<hr style='color: red;'>
|
| 109 |
<h1 class='centered-title' ♥ Made by Tasia with Heart ♥</h1>
|
| 110 |
<hr style='color: red;'>
|
| 111 |
-
"""
|
| 112 |
-
unsafe_allow_html=True
|
| 113 |
)
|
| 114 |
app.launch(server_port=7860)
|
|
|
|
| 63 |
|
| 64 |
# Gradio UI
|
| 65 |
with gr.Blocks(theme='NoCrypt/miku') as app:
|
| 66 |
+
gr.HTML(
|
| 67 |
"""
|
| 68 |
<style>
|
| 69 |
.centered-title {
|
|
|
|
| 76 |
<hr style='color: red;'>
|
| 77 |
<h1 class='centered-title'>♥ Tasia API on Marty Space ♥</h1>
|
| 78 |
<hr style='color: red;'>
|
| 79 |
+
"""
|
|
|
|
| 80 |
)
|
| 81 |
|
| 82 |
gr.Markdown("<hr style='color: red;'>")
|
|
|
|
| 94 |
inputs=[prompt_input, model_input, api_key_input],
|
| 95 |
outputs=[image_output, url_output]
|
| 96 |
)
|
| 97 |
+
gr.HTML(
|
| 98 |
"""
|
| 99 |
<style>
|
| 100 |
.centered-title {
|
|
|
|
| 107 |
<hr style='color: red;'>
|
| 108 |
<h1 class='centered-title' ♥ Made by Tasia with Heart ♥</h1>
|
| 109 |
<hr style='color: red;'>
|
| 110 |
+
"""
|
|
|
|
| 111 |
)
|
| 112 |
app.launch(server_port=7860)
|