Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,50 +89,13 @@ def generate_image(image_prompt):
|
|
89 |
|
90 |
# Main Streamlit app
|
91 |
def main():
|
92 |
-
# Custom CSS for background, borders, and other styling
|
93 |
-
st.markdown(
|
94 |
-
"""
|
95 |
-
<style>
|
96 |
-
/* Custom Background Image */
|
97 |
-
body {
|
98 |
-
background-image: url('https://images.unsplash.com/photo-1519125323398-675f0ddb6308');
|
99 |
-
background-size: cover;
|
100 |
-
background-position: center;
|
101 |
-
}
|
102 |
-
|
103 |
-
/* Main content container styling */
|
104 |
-
.reportview-container {
|
105 |
-
background: rgba(255, 255, 255, 0.85); /* Transparent white background */
|
106 |
-
padding: 2rem;
|
107 |
-
border-radius: 10px;
|
108 |
-
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); /* Light shadow effect */
|
109 |
-
}
|
110 |
-
|
111 |
-
/* Border around the generated result */
|
112 |
-
.result-container {
|
113 |
-
border: 2px solid #4CAF50; /* Green border */
|
114 |
-
padding: 20px;
|
115 |
-
border-radius: 10px;
|
116 |
-
margin-top: 20px;
|
117 |
-
animation: fadeIn 2s ease; /* Animation effect */
|
118 |
-
}
|
119 |
-
|
120 |
-
/* Animation for fading in the result */
|
121 |
-
@keyframes fadeIn {
|
122 |
-
0% { opacity: 0; }
|
123 |
-
100% { opacity: 1; }
|
124 |
-
}
|
125 |
-
|
126 |
-
</style>
|
127 |
-
""", unsafe_allow_html=True
|
128 |
-
)
|
129 |
|
130 |
st.title("🅰️ℹ️ FusionMind ➡️ Multimodal Generator 🤖")
|
131 |
|
132 |
# Sidebar for temperature and token adjustment
|
133 |
st.sidebar.header("Settings")
|
134 |
temperature = st.sidebar.slider("Select Temperature", 0.1, 1.0, 0.7)
|
135 |
-
max_tokens = st.sidebar.slider("Max Tokens for Content Generation", 100,
|
136 |
|
137 |
# Suggested inputs
|
138 |
st.write("## Suggested Inputs")
|
|
|
89 |
|
90 |
# Main Streamlit app
|
91 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
st.title("🅰️ℹ️ FusionMind ➡️ Multimodal Generator 🤖")
|
94 |
|
95 |
# Sidebar for temperature and token adjustment
|
96 |
st.sidebar.header("Settings")
|
97 |
temperature = st.sidebar.slider("Select Temperature", 0.1, 1.0, 0.7)
|
98 |
+
max_tokens = st.sidebar.slider("Max Tokens for Content Generation", 100, 300, 200)
|
99 |
|
100 |
# Suggested inputs
|
101 |
st.write("## Suggested Inputs")
|