Download examples.py from oB3TAo/text-app: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/spaces/oB3TAo/text-app/resolve/main/examples.py
- Command line
-
hf download hf://spaces/oB3TAo/text-app/examples.py
-
curl -L -o examples.py https://huggingface.co/spaces/oB3TAo/text-app/resolve/main/examples.py
1.11 kB
| # Examples for translation | |
| translation_examples = [ | |
| ["I love programming", "French"], | |
| ["This is a great day", "German"], | |
| ["Machine learning is fascinating", "Romanian"] | |
| ] | |
| # Examples for summarization | |
| summarization_examples = [ | |
| ["Artificial intelligence is the simulation of human intelligence in machines that are programmed to think and act like humans. The term may also be applied to any machine that exhibits traits associated with a human mind such as learning and problem-solving."], | |
| ["Machine learning is an application of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed."] | |
| ] | |
| # Examples for sentiment analysis | |
| sentiment_examples = [ | |
| ["I am extremely happy with the results."], | |
| ["This is the worst experience I’ve had."] | |
| ] | |
| # Examples for grammar correction | |
| grammar_examples = [ | |
| ["He go to school everyday."], | |
| ["She dont know the answer."] | |
| ] | |
| # Examples for character count | |
| character_count_examples = [ | |
| ["How many characters does this sentence have?"] | |
| ] | |