Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ def html_with_progress(label, progress):
|
|
152 |
<div style="width: 70%; background-color: lightgrey; border-radius: 80px; overflow: hidden; margin-bottom: 20px;">
|
153 |
<div style="width: {progress}%; height: 15px; background-color: #4CAF50; border-radius: 80px;"></div>
|
154 |
</div>
|
155 |
-
<h2 style="font-style: italic; color: #555;">{label}</h2>
|
156 |
</div>
|
157 |
"""
|
158 |
|
@@ -1227,8 +1227,6 @@ js_code = """
|
|
1227 |
}
|
1228 |
});
|
1229 |
});
|
1230 |
-
|
1231 |
-
// Start observing the document body for changes
|
1232 |
observer.observe(document.body, { childList: true, subtree: true });
|
1233 |
console.log("Started observing DOM for lecture container");
|
1234 |
}
|
@@ -1238,15 +1236,14 @@ js_code = """
|
|
1238 |
with gr.Blocks(
|
1239 |
title="Agent Feynman",
|
1240 |
css="""
|
1241 |
-
h1 {text-align: center}
|
1242 |
-
h2 {text-align: center}
|
1243 |
#lecture-container {font-family: 'Times New Roman', Times, serif;}
|
1244 |
#slide-content {font-size: 48px; line-height: 1.2;}
|
1245 |
#form-group {box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important; border-radius: 30px; font-weight: 900; color: #000; background-color: white;}
|
1246 |
#download {box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important; border-radius: 30px;}
|
1247 |
#slide-display {box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important; border-radius: 30px; background-color: white;}
|
1248 |
.gradio-container { background: linear-gradient(135deg, #2a2a2a, #6a6a6a); box-shadow: 0 0 2rem rgba(255, 255, 255, 0.14);padding-top: 30px;}
|
1249 |
-
.gradio-container.gradio-container-5-28-0 .contain h2 {color: black !important;}
|
1250 |
button {transition: background-color 0.3s;}
|
1251 |
button:hover {background-color: #e0e0e0;}
|
1252 |
""",
|
|
|
152 |
<div style="width: 70%; background-color: lightgrey; border-radius: 80px; overflow: hidden; margin-bottom: 20px;">
|
153 |
<div style="width: {progress}%; height: 15px; background-color: #4CAF50; border-radius: 80px;"></div>
|
154 |
</div>
|
155 |
+
<h2 style="font-style: italic; color: #555 !important;">{label}</h2>
|
156 |
</div>
|
157 |
"""
|
158 |
|
|
|
1227 |
}
|
1228 |
});
|
1229 |
});
|
|
|
|
|
1230 |
observer.observe(document.body, { childList: true, subtree: true });
|
1231 |
console.log("Started observing DOM for lecture container");
|
1232 |
}
|
|
|
1236 |
with gr.Blocks(
|
1237 |
title="Agent Feynman",
|
1238 |
css="""
|
1239 |
+
h1 {text-align: center; color: white !important;}
|
1240 |
+
h2 {text-align: center; white !important;}
|
1241 |
#lecture-container {font-family: 'Times New Roman', Times, serif;}
|
1242 |
#slide-content {font-size: 48px; line-height: 1.2;}
|
1243 |
#form-group {box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important; border-radius: 30px; font-weight: 900; color: #000; background-color: white;}
|
1244 |
#download {box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important; border-radius: 30px;}
|
1245 |
#slide-display {box-shadow: 0 0 2rem rgba(0, 0, 0, .14) !important; border-radius: 30px; background-color: white;}
|
1246 |
.gradio-container { background: linear-gradient(135deg, #2a2a2a, #6a6a6a); box-shadow: 0 0 2rem rgba(255, 255, 255, 0.14);padding-top: 30px;}
|
|
|
1247 |
button {transition: background-color 0.3s;}
|
1248 |
button:hover {background-color: #e0e0e0;}
|
1249 |
""",
|