Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,8 +63,23 @@ 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.Markdown(
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
gr.Markdown("<hr style='color: red;'>")
|
69 |
with gr.Row():
|
70 |
prompt_input = gr.Textbox(label="Enter a prompt:", placeholder="A futuristic spaceship...")
|
@@ -80,7 +95,20 @@ with gr.Blocks(theme='NoCrypt/miku') as app:
|
|
80 |
inputs=[prompt_input, model_input, api_key_input],
|
81 |
outputs=[image_output, url_output]
|
82 |
)
|
83 |
-
gr.Markdown(
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
app.launch(server_port=7860)
|
|
|
63 |
|
64 |
# Gradio UI
|
65 |
with gr.Blocks(theme='NoCrypt/miku') as app:
|
66 |
+
gr.Markdown(
|
67 |
+
"""
|
68 |
+
<style>
|
69 |
+
.centered-title {
|
70 |
+
text-align: center;
|
71 |
+
color: red;
|
72 |
+
font-size: 24px;
|
73 |
+
font-weight: bold;
|
74 |
+
}
|
75 |
+
</style>
|
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;'>")
|
84 |
with gr.Row():
|
85 |
prompt_input = gr.Textbox(label="Enter a prompt:", placeholder="A futuristic spaceship...")
|
|
|
95 |
inputs=[prompt_input, model_input, api_key_input],
|
96 |
outputs=[image_output, url_output]
|
97 |
)
|
98 |
+
gr.Markdown(
|
99 |
+
"""
|
100 |
+
<style>
|
101 |
+
.centered-title {
|
102 |
+
text-align: center;
|
103 |
+
color: red;
|
104 |
+
font-size: 24px;
|
105 |
+
font-weight: bold;
|
106 |
+
}
|
107 |
+
</style>
|
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)
|