Download app.py from WealthFromAI/data-science-ml-data-validation-and-enrichment-api-2ebd: direct link, hf CLI and curl.
- Browser
- Download file 1.85 kB
-
https://huggingface.co/spaces/WealthFromAI/data-science-ml-data-validation-and-enrichment-api-2ebd/resolve/main/app.py
- Command line
-
hf download hf://spaces/WealthFromAI/data-science-ml-data-validation-and-enrichment-api-2ebd/app.py
-
curl -L -o app.py https://huggingface.co/spaces/WealthFromAI/data-science-ml-data-validation-and-enrichment-api-2ebd/resolve/main/app.py
1.85 kB
| """ | |
| Data Science & ML Data Validation and Enrichment API — Hugging Face Spaces Demo | |
| Auto-generated by FORGE-X | |
| """ | |
| import gradio as gr | |
| def demo_interface(query: str) -> str: | |
| """Demonstrate Data Science & ML Data Validation and Enrichment API capabilities.""" | |
| if not query.strip(): | |
| return "Please enter a query to see the demo output." | |
| # Simulated response demonstrating the tool's output format | |
| response = f"""## Data Science & ML Data Validation and Enrichment API Output | |
| **Query:** {query} | |
| **Result:** | |
| This is a demonstration of Data Science & ML Data Validation and Enrichment API. The full tool provides: | |
| - See documentation for full feature list | |
| **Note:** This is a UI demo. The full source code is available for purchase. | |
| """ | |
| return response | |
| with gr.Blocks( | |
| title="Data Science & ML Data Validation and Enrichment API", | |
| theme=gr.themes.Soft(), | |
| ) as demo: | |
| gr.Markdown( | |
| """# Data Science & ML Data Validation and Enrichment API | |
| Stop wasting 80% of your project time cleaning messy data. Our API instantly validates and enriches your data science and ML datasets, letting you focus on building models, not fixing data. This API | |
| --- | |
| """ | |
| ) | |
| with gr.Row(): | |
| with gr.Column(scale=1): | |
| query_input = gr.Textbox( | |
| label="Input", | |
| placeholder="Enter your query here...", | |
| lines=4, | |
| ) | |
| submit_btn = gr.Button("Run Demo", variant="primary") | |
| with gr.Column(scale=1): | |
| output_box = gr.Markdown(label="Output") | |
| submit_btn.click( | |
| fn=demo_interface, | |
| inputs=[query_input], | |
| outputs=[output_box], | |
| ) | |
| gr.Markdown( | |
| """--- | |
| *Full source code available — see pricing section in README* | |
| """ | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |