Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -153,18 +153,18 @@ def append_word_from_radio(text, selection):
|
|
| 153 |
|
| 154 |
# Custom CSS to match the original design
|
| 155 |
custom_css = """
|
| 156 |
-
/* Gradient background */
|
| 157 |
-
body {
|
| 158 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
| 159 |
-
min-height: 100vh;
|
| 160 |
}
|
| 161 |
|
| 162 |
-
.gradio-container {
|
| 163 |
background: transparent !important;
|
| 164 |
}
|
| 165 |
|
| 166 |
-
/* White card container */
|
| 167 |
-
.main.svelte-1kyws56 {
|
| 168 |
background: white !important;
|
| 169 |
border-radius: 12px !important;
|
| 170 |
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
|
|
@@ -256,7 +256,7 @@ textarea::placeholder {
|
|
| 256 |
"""
|
| 257 |
|
| 258 |
# Create Gradio interface
|
| 259 |
-
with gr.Blocks(css=custom_css, title="Next Word Prediction") as demo:
|
| 260 |
gr.Markdown("# Next Word Prediction")
|
| 261 |
|
| 262 |
with gr.Row():
|
|
|
|
| 153 |
|
| 154 |
# Custom CSS to match the original design
|
| 155 |
custom_css = """
|
| 156 |
+
/* Gradient background - apply to multiple selectors for HF Spaces compatibility */
|
| 157 |
+
body, html, #root, .gradio-app {
|
| 158 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
| 159 |
+
min-height: 100vh !important;
|
| 160 |
}
|
| 161 |
|
| 162 |
+
.gradio-container, .app {
|
| 163 |
background: transparent !important;
|
| 164 |
}
|
| 165 |
|
| 166 |
+
/* White card container - target multiple possible classes */
|
| 167 |
+
.main, .main.svelte-1kyws56, [class*="main"], .contain {
|
| 168 |
background: white !important;
|
| 169 |
border-radius: 12px !important;
|
| 170 |
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
|
|
|
|
| 256 |
"""
|
| 257 |
|
| 258 |
# Create Gradio interface
|
| 259 |
+
with gr.Blocks(css=custom_css, title="Next Word Prediction", theme=gr.themes.Soft()) as demo:
|
| 260 |
gr.Markdown("# Next Word Prediction")
|
| 261 |
|
| 262 |
with gr.Row():
|