Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,9 +62,9 @@ def generate_and_upload(prompt: str, model_name: str, api_key: str):
|
|
62 |
return img_path, url
|
63 |
|
64 |
# Gradio UI
|
65 |
-
with gr.Blocks() as app:
|
66 |
gr.Markdown("<hr style='color: red;'>")
|
67 |
-
gr.Markdown("<h1 style='text-align: center; color: red;'> ♥ Tasia API on Marty Space ♥</h1>")
|
68 |
gr.Markdown("<hr style='color: red;'>")
|
69 |
with gr.Row():
|
70 |
prompt_input = gr.Textbox(label="Enter a prompt:", placeholder="A futuristic spaceship...")
|
@@ -81,6 +81,6 @@ with gr.Blocks() as app:
|
|
81 |
outputs=[image_output, url_output]
|
82 |
)
|
83 |
gr.Markdown("<hr style='color: red;'>")
|
84 |
-
gr.Markdown("<h1 style='text-align: center; color: red;'> ♥ Made by Tasia with Heart ♥</h1>")
|
85 |
gr.Markdown("<hr style='color: red;'>")
|
86 |
-
app.launch(server_port=7860
|
|
|
62 |
return img_path, url
|
63 |
|
64 |
# Gradio UI
|
65 |
+
with gr.Blocks(theme=gr.themes.Default(primary_hue="red")) as app:
|
66 |
gr.Markdown("<hr style='color: red;'>")
|
67 |
+
gr.Markdown("<center><h1 style='text-align: center; color: red;'> ♥ Tasia API on Marty Space ♥</h1></center>")
|
68 |
gr.Markdown("<hr style='color: red;'>")
|
69 |
with gr.Row():
|
70 |
prompt_input = gr.Textbox(label="Enter a prompt:", placeholder="A futuristic spaceship...")
|
|
|
81 |
outputs=[image_output, url_output]
|
82 |
)
|
83 |
gr.Markdown("<hr style='color: red;'>")
|
84 |
+
gr.Markdown("<center><h1 style='text-align: center; color: red;'> ♥ Made by Tasia with Heart ♥</h1></center>")
|
85 |
gr.Markdown("<hr style='color: red;'>")
|
86 |
+
app.launch(server_port=7860)
|