|
Download README.md from GeekedReals/Horror: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/GeekedReals/Horror/resolve/main/README.md
- Command line
-
hf download hf://GeekedReals/Horror/README.md
-
curl -L -o README.md https://huggingface.co/GeekedReals/Horror/resolve/main/README.md
1.51 kB
| --- | |
| license: gemma | |
| datasets: | |
| - HuggingFaceM4/Docmatix | |
| metrics: | |
| - accuracy | |
| library_name: fasttext | |
| tags: | |
| - code | |
| ---class EdgarAlanGage: | |
| def init(self): | |
| # Initialize the gage with a default value of 0 | |
| self.terrifying_level = 0 | |
| def set_level(self, level): | |
| # Set the terrifying level of the story | |
| # level: an integer from 1 to 10 | |
| if 1 <= level <= 10: | |
| self.terrifying_level = level | |
| else: | |
| raise ValueError("Level must be between 1 and 10.") | |
| def get_level(self): | |
| # Get the current horrifying level of the story | |
| return self.terrifying_level | |
| def describe_level(self): | |
| # Provide a description based on the terrifying level | |
| descriptions = { | |
| 1: "Barely scary. A light scare.", | |
| 2: "Mildly unsettling. A slight chill.", | |
| 3: "Some suspense. Building tension.", | |
| 4: "Noticeably eerie. A haunting feeling.", | |
| 5: "Scary moments. Shadows lurking.", | |
| 6: "Very frightening. Anxiety heightening.", | |
| 7: "Intensely terrifying. Heart racing.", | |
| 8: "Extremely horrific. Can't look away.", | |
| 9: "Deeply disturbing. Pure dread.", | |
| 10: "Utterly terrifying. Nightmares guaranteed!" | |
| } | |
| return descriptions[self.terrifying_level] | |
| # Example usage: | |
| gage = EdgarAlanGage() # Create an instance of the gage | |
| gage.set_level(7) # Set the terrifying level to 7 | |
| print(gage.get_level()) # Output the current terrifying level | |
| print(gage.describe_level()) # Get a description of the terrifying level |