Spaces:
Sleeping
Sleeping
GitHub Actions Bot commited on
Commit ·
879c04e
1
Parent(s): 2afe624
feat: Deploy latest version of Gradio app
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def predict_rul(*args):
|
|
| 46 |
|
| 47 |
# --- 4. Build the Gradio Interface ---
|
| 48 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 49 |
-
gr.Markdown("#
|
| 50 |
gr.Markdown(
|
| 51 |
"""
|
| 52 |
Predictive maintenance machine learning system, forecasting faults and remaining useful life (RUL).
|
|
@@ -61,12 +61,13 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 61 |
|
| 62 |
# --- NEW: Video Display ---
|
| 63 |
# This component will display your video.
|
| 64 |
-
gr.
|
| 65 |
-
value="
|
| 66 |
-
label="
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
|
|
|
| 70 |
|
| 71 |
gr.Markdown("### Enter Machine Parameters & Sensor Readings")
|
| 72 |
|
|
@@ -97,4 +98,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 97 |
|
| 98 |
# --- 5. Launch the App ---
|
| 99 |
if __name__ == "__main__":
|
| 100 |
-
demo.launch()
|
|
|
|
| 46 |
|
| 47 |
# --- 4. Build the Gradio Interface ---
|
| 48 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 49 |
+
gr.Markdown("# Zodiac 1.0")
|
| 50 |
gr.Markdown(
|
| 51 |
"""
|
| 52 |
Predictive maintenance machine learning system, forecasting faults and remaining useful life (RUL).
|
|
|
|
| 61 |
|
| 62 |
# --- NEW: Video Display ---
|
| 63 |
# This component will display your video.
|
| 64 |
+
gr.Gallery(
|
| 65 |
+
value=["https://images.pexels.com/photos/16667540/pexels-photo-16667540.jpeg"],
|
| 66 |
+
label="Customize easily for almost any machinery",
|
| 67 |
+
columns=1,
|
| 68 |
+
object_fit="cover",
|
| 69 |
+
height="10"
|
| 70 |
+
)
|
| 71 |
|
| 72 |
gr.Markdown("### Enter Machine Parameters & Sensor Readings")
|
| 73 |
|
|
|
|
| 98 |
|
| 99 |
# --- 5. Launch the App ---
|
| 100 |
if __name__ == "__main__":
|
| 101 |
+
demo.launch(share=True)
|
app_v3.py
CHANGED
|
@@ -53,13 +53,14 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 53 |
"""
|
| 54 |
)
|
| 55 |
# This component will display your four images in a neat grid.
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
|
|
|
|
| 53 |
"""
|
| 54 |
)
|
| 55 |
# This component will display your four images in a neat grid.
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
gr.Video(
|
| 59 |
+
value="intro.mp4", #
|
| 60 |
+
label="Customizable for multiple machines",
|
| 61 |
+
autoplay=True, # Optional: makes the video play automatically
|
| 62 |
+
interactive=False # Optional: prevents users from uploading their own video
|
| 63 |
+
)
|
| 64 |
|
| 65 |
|
| 66 |
|