skolvankar commited on
Commit
530799e
·
1 Parent(s): 6b1e03a

Add application file

Browse files
Files changed (1) hide show
  1. app.py +17 -21
app.py CHANGED
@@ -93,27 +93,23 @@ def recommend_courses(user_skills):
93
  return table
94
 
95
 
96
- def greet(name):
97
- return "Hello " + name + "!"
98
-
99
-
100
- with gr.Blocks() as iface:
101
- gr.Markdown(
102
- """
103
- Welcome to the skill transformation journey on SWAYAM!!!
104
- """)
105
- name = gr.Textbox(label="Enter any skill")
106
- output = gr.HTML(label = "Here is your skill transformation journey")
107
- greet_btn = gr.Button("Submit")
108
- greet_btn.click(fn=recommend_courses, inputs=name, outputs=output, api_name="recommend_courses")
109
 
110
  # demo.launch()
111
- # # Gradio interface
112
- # iface = gr.Interface(
113
- # fn=recommend_courses,
114
- # inputs="text",
115
- # outputs="html",
116
- # title = "COURSE Recommendation Chatbot: SWAYAM",
117
- # live=True,
118
- # )
119
  iface.launch()
 
93
  return table
94
 
95
 
96
+ # with gr.Blocks() as iface:
97
+ # gr.Markdown(
98
+ # """
99
+ # Welcome to the skill transformation journey on SWAYAM!!!
100
+ # """)
101
+ # name = gr.Textbox(label="Enter any skill")
102
+ # output = gr.HTML(label = "Here is your skill transformation journey")
103
+ # greet_btn = gr.Button("Submit")
104
+ # greet_btn.click(fn=recommend_courses, inputs=name, outputs=output, api_name="recommend_courses")
 
 
 
 
105
 
106
  # demo.launch()
107
+ # Gradio interface
108
+ iface = gr.Interface(
109
+ fn=recommend_courses,
110
+ inputs="text",
111
+ outputs="html",
112
+ title = "COURSE Recommendation Chatbot: SWAYAM",
113
+ live=True,
114
+ )
115
  iface.launch()