Spaces:
Sleeping
Sleeping
File size: 1,221 Bytes
8235aef |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
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()
|