GlobalBusinessAdvisors
commited on
Commit
•
50bbbcc
1
Parent(s):
22ed283
Update gradio_ui.py
Browse files- gradio_ui.py +16 -0
gradio_ui.py
CHANGED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def start_assessment():
|
4 |
+
return "Welcome to EcoPropertyRetrofitGPT! Begin your property retrofit assessment by answering each question as it appears. Your responses will automatically guide the creation of a comprehensive retrofit plan."
|
5 |
+
|
6 |
+
def create_ui():
|
7 |
+
iface = gr.Interface(
|
8 |
+
fn=start_assessment,
|
9 |
+
inputs=[],
|
10 |
+
outputs="text",
|
11 |
+
live=True
|
12 |
+
)
|
13 |
+
iface.launch()
|
14 |
+
|
15 |
+
if __name__ == "__main__":
|
16 |
+
create_ui()
|