ps1811 commited on
Commit
dd2a5cf
·
verified ·
1 Parent(s): 7587bed
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -104,10 +104,14 @@
104
 
105
  import gradio as gr
106
 
107
- def build_app():
108
- with gr.Blocks() as demo:
109
- gr.Markdown("Hello from Advisor")
110
- return demo
 
 
 
 
 
111
 
112
- demo = build_app()
113
  demo.launch()
 
104
 
105
  import gradio as gr
106
 
107
+ def predict():
108
+ return "Advisor is running successfully"
109
+
110
+ demo = gr.Interface(
111
+ fn=predict,
112
+ inputs=[],
113
+ outputs="text",
114
+ title="Advisor"
115
+ )
116
 
 
117
  demo.launch()