Spaces:
Runtime error
Runtime error
skolvankar
commited on
Commit
·
530799e
1
Parent(s):
6b1e03a
Add application file
Browse files
app.py
CHANGED
@@ -93,27 +93,23 @@ def recommend_courses(user_skills):
|
|
93 |
return table
|
94 |
|
95 |
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
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 |
-
#
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
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()
|