Spaces:
Sleeping
Sleeping
import gradio as gr | |
import os | |
from utils import CarPricePrediction | |
demo = gr.Interface( | |
fn=CarPricePrediction, | |
inputs=[ | |
gr.Textbox(label="Nama Mobil (<tahun> <merk> <model>)", placeholder="2020 Honda Brio"), | |
gr.Textbox(label="Harga Mobil (Rp.)", placeholder="Rp. 400.000.000 or Rp 400.000.000"), | |
gr.Textbox(label="Tahun Prediksi Penjualan", placeholder="Di tahun berapa mobil akan dijual") | |
], | |
outputs="text", | |
title="Prediksi Harga Mobil Bekas", | |
description=( | |
"Masukkan nama dan harga mobil.\n\n" | |
"- Format **Nama Mobil**: '2024 Mitsubishi Pajero'\n" | |
"- Format **Harga**: 'Rp. 400.000.000 atau Rp 400.000'\n" | |
"- Format **Tahun prediksi penjualan**: Jika kosong, default tahun saat ini\n" | |
) | |
) | |
if __name__ == "__main__": | |
demo.launch() |