Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def generate_image(api_url, prompt):
|
|
34 |
return None, "Model is still loading after multiple attempts. Please try again later." # Final error if all attempts fail
|
35 |
|
36 |
# Create Gradio Blocks Interface
|
37 |
-
with gr.Blocks() as demo:
|
38 |
gr.Markdown(
|
39 |
"""
|
40 |
# Text to Image Generator
|
@@ -47,7 +47,7 @@ with gr.Blocks() as demo:
|
|
47 |
text_input = gr.Textbox(
|
48 |
label="Enter your prompt",
|
49 |
placeholder="Type something here...",
|
50 |
-
value="
|
51 |
)
|
52 |
model_input = gr.Textbox(
|
53 |
label="Model URL",
|
@@ -68,4 +68,4 @@ with gr.Blocks() as demo:
|
|
68 |
)
|
69 |
|
70 |
# Launch the Gradio Blocks WebUI
|
71 |
-
demo.launch()
|
|
|
34 |
return None, "Model is still loading after multiple attempts. Please try again later." # Final error if all attempts fail
|
35 |
|
36 |
# Create Gradio Blocks Interface
|
37 |
+
with gr.Blocks(theme="nevreal/blues") as demo:
|
38 |
gr.Markdown(
|
39 |
"""
|
40 |
# Text to Image Generator
|
|
|
47 |
text_input = gr.Textbox(
|
48 |
label="Enter your prompt",
|
49 |
placeholder="Type something here...",
|
50 |
+
value=""
|
51 |
)
|
52 |
model_input = gr.Textbox(
|
53 |
label="Model URL",
|
|
|
68 |
)
|
69 |
|
70 |
# Launch the Gradio Blocks WebUI
|
71 |
+
demo.launch(share=True, debug=True)
|