Thanoss commited on
Commit
cce881b
·
verified ·
1 Parent(s): c3fd270

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -11,4 +11,21 @@ pipeline_tag: text-classification
11
  library_name: sklearn
12
  ---
13
 
14
- this model is based on like giving description for example if you give prompt as software its giving a software description or else its take description from you for train his self
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  library_name: sklearn
12
  ---
13
 
14
+ this model is based on like giving description for example if you give prompt as software its giving a software description or else its take description from you for train his self
15
+
16
+ word = input("Enter a word to get its description (or 'quit' to exit): ").strip()
17
+
18
+ if word.lower() == 'quit':
19
+ break
20
+
21
+ found, description = model.get_description(word)
22
+ print(f"\nResult: {description}")
23
+
24
+ if not found:
25
+ print("\nLet's add this word to our database!")
26
+ new_description = input("Please provide a description for this word: ").strip()
27
+ model.add_new_word(word, new_description)
28
+ print(f"\nThank you! '{word}' has been added to the database.")
29
+
30
+ model.save_model(model_file)
31
+ print("Model has been updated and saved.")