Spaces:
Build error
Build error
Abhay Mishra
commited on
Commit
·
1b9a1bf
1
Parent(s):
8cca354
update labels and add placeholder
Browse files
app.py
CHANGED
@@ -22,5 +22,5 @@ def give_best_match(query):
|
|
22 |
predictions = {course_titles[i] : float(result[i]) for i in indices}
|
23 |
return predictions
|
24 |
|
25 |
-
demo = gr.Interface(fn = give_best_match, inputs="
|
26 |
demo.launch()
|
|
|
22 |
predictions = {course_titles[i] : float(result[i]) for i in indices}
|
23 |
return predictions
|
24 |
|
25 |
+
demo = gr.Interface(fn = give_best_match, inputs=gr.Textbox(label="Describe the course",lines = 5, placeholder = "Type anything related to course/s\n\nTitle, Topics/Sub Topics, Refernce books, Questions asked in exams or some random fun stuff.") ,outputs=gr.Label(label = "Most Relevant Courses", num_top_classes=5))
|
26 |
demo.launch()
|