LuigiLui commited on
Commit
71bb213
·
verified ·
1 Parent(s): 3901554

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -5
app.py CHANGED
@@ -55,11 +55,24 @@ input[type="text"] {
55
  color: #007bff;
56
  text-decoration: underline;
57
  }
58
- """
59
 
60
- # Function to handle example clicks (to simulate button-less selection)
61
- def update_prompt_text(example_text):
62
- return example_text, None
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  # Gradio Interface with updated UI elements and custom CSS
65
  interface = gr.Interface(
@@ -72,7 +85,6 @@ interface = gr.Interface(
72
  examples=examples,
73
  css=custom_css, # Apply custom CSS
74
  description="Enter a creative prompt or choose an example to generate your AI-powered image. Model performance may vary due to CPU usage.",
75
- live=True
76
  )
77
 
78
  interface.launch()
 
55
  color: #007bff;
56
  text-decoration: underline;
57
  }
 
58
 
59
+ /* Styling for the generate button */
60
+ button {
61
+ border-radius: 50px;
62
+ background: linear-gradient(90deg, #ff8a00, #e52e71);
63
+ color: white;
64
+ font-weight: bold;
65
+ padding: 10px 20px;
66
+ border: none;
67
+ cursor: pointer;
68
+ font-size: 16px;
69
+ margin-top: 10px;
70
+ }
71
+
72
+ button:hover {
73
+ background: linear-gradient(90deg, #e52e71, #ff8a00);
74
+ }
75
+ """
76
 
77
  # Gradio Interface with updated UI elements and custom CSS
78
  interface = gr.Interface(
 
85
  examples=examples,
86
  css=custom_css, # Apply custom CSS
87
  description="Enter a creative prompt or choose an example to generate your AI-powered image. Model performance may vary due to CPU usage.",
 
88
  )
89
 
90
  interface.launch()