GeekedReals commited on
Commit
6201674
·
verified ·
1 Parent(s): a6fd3d5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -3
README.md CHANGED
@@ -1,3 +1,46 @@
1
- ---
2
- license: gemma
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ datasets:
4
+ - HuggingFaceM4/Docmatix
5
+ metrics:
6
+ - accuracy
7
+ library_name: fasttext
8
+ tags:
9
+ - code
10
+ ---class EdgarAlanGage:
11
+ def init(self):
12
+ # Initialize the gage with a default value of 0
13
+ self.terrifying_level = 0
14
+ def set_level(self, level):
15
+ # Set the terrifying level of the story
16
+ # level: an integer from 1 to 10
17
+ if 1 <= level <= 10:
18
+ self.terrifying_level = level
19
+ else:
20
+ raise ValueError("Level must be between 1 and 10.")
21
+
22
+ def get_level(self):
23
+ # Get the current horrifying level of the story
24
+ return self.terrifying_level
25
+
26
+ def describe_level(self):
27
+ # Provide a description based on the terrifying level
28
+ descriptions = {
29
+ 1: "Barely scary. A light scare.",
30
+ 2: "Mildly unsettling. A slight chill.",
31
+ 3: "Some suspense. Building tension.",
32
+ 4: "Noticeably eerie. A haunting feeling.",
33
+ 5: "Scary moments. Shadows lurking.",
34
+ 6: "Very frightening. Anxiety heightening.",
35
+ 7: "Intensely terrifying. Heart racing.",
36
+ 8: "Extremely horrific. Can't look away.",
37
+ 9: "Deeply disturbing. Pure dread.",
38
+ 10: "Utterly terrifying. Nightmares guaranteed!"
39
+ }
40
+ return descriptions[self.terrifying_level]
41
+
42
+ # Example usage:
43
+ gage = EdgarAlanGage() # Create an instance of the gage
44
+ gage.set_level(7) # Set the terrifying level to 7
45
+ print(gage.get_level()) # Output the current terrifying level
46
+ print(gage.describe_level()) # Get a description of the terrifying level