Larry-Test / app.py
leadingbridge's picture
Create app.py
8235aef verified
raw
history blame
1.22 kB
import gradio as gr
def dummy_function(*args):
# This dummy function does nothing and is only used for UI display.
return "This is a UI display only. No computation performed."
# Define Gradio interface with updated inputs
iface = gr.Interface(
fn=dummy_function,
inputs=[
gr.Dropdown(
choices=[
"Mid-Levels West", "Mid-Levels Central", "Sheung Wan",
"Sai Ying Pun", "Kennedy Town", "North Point", "Quarry Bay", "Aberdeen"
],
label='District'
),
gr.Textbox(label='Building Name'),
gr.Dropdown(choices=list(range(1, 71)), label='Floor'),
gr.Dropdown(choices=list(range(1, 31)), label='Unit (e.g., A=1, B=2, C=3, ...)'),
gr.Slider(minimum=137, maximum=5000, step=1, label='Area (in sq. feet)'),
gr.Dropdown(choices=list(range(2022, 2024)), label='Year'),
gr.Dropdown(choices=list(range(1, 53)), label='Week Number')
],
outputs=gr.Textbox(label='Output'),
title="PROPERTY PRICE PREDICTION TOOL UI DISPLAY",
description="This UI is for display purposes only. No prediction functions are enabled."
)
if __name__ == "__main__":
iface.launch()