Spaces:
Runtime error
Runtime error
skolvankar
commited on
Commit
•
f17f9a8
1
Parent(s):
ed7a51a
Add application file
Browse files
app.py
CHANGED
@@ -58,9 +58,9 @@ def html_coversion(gpt_content):
|
|
58 |
return html_table
|
59 |
|
60 |
# Function to recommend courses based on user input using GPT and TF-IDF
|
61 |
-
def recommend_courses(user_skill
|
62 |
# Combine user's input into a single string for TF-IDF
|
63 |
-
user_input = f"{user_skill}
|
64 |
|
65 |
# Use TF-IDF and cosine similarity for initial course recommendations
|
66 |
user_vector = tfidf_vectorizer.transform([user_input])
|
@@ -87,7 +87,7 @@ iface = gr.Interface(
|
|
87 |
fn=recommend_courses,
|
88 |
inputs=[
|
89 |
gr.Textbox("text", label="Enter expected skill"),
|
90 |
-
gr.Dropdown(["B.Tech/B.Sc", "M.Tech/M.Sc", "Management"], label="Highest Educational Qualification"),
|
91 |
],
|
92 |
outputs="html",
|
93 |
live=True
|
|
|
58 |
return html_table
|
59 |
|
60 |
# Function to recommend courses based on user input using GPT and TF-IDF
|
61 |
+
def recommend_courses(user_skill):
|
62 |
# Combine user's input into a single string for TF-IDF
|
63 |
+
user_input = f"{user_skill}"
|
64 |
|
65 |
# Use TF-IDF and cosine similarity for initial course recommendations
|
66 |
user_vector = tfidf_vectorizer.transform([user_input])
|
|
|
87 |
fn=recommend_courses,
|
88 |
inputs=[
|
89 |
gr.Textbox("text", label="Enter expected skill"),
|
90 |
+
#gr.Dropdown(["B.Tech/B.Sc", "M.Tech/M.Sc", "Management"], label="Highest Educational Qualification"),
|
91 |
],
|
92 |
outputs="html",
|
93 |
live=True
|