Text Generation
Transformers
Safetensors
mistral
text-generation-inference
unsloth
Mistral_Star
Mistral_Quiet
Mistral
Mixtral
Question-Answer
Token-Classification
Sequence-Classification
SpydazWeb-AI
chemistry
biology
legal
code
climate
medical
LCARS_AI_StarTrek_Computer
chain-of-thought
tree-of-knowledge
forest-of-thoughts
visual-spacial-sketchpad
alpha-mind
knowledge-graph
entity-detection
encyclopedia
wikipedia
stack-exchange
Reddit
Cyber-series
MegaMind
Cybertron
SpydazWeb
Spydaz
LCARS
star-trek
mega-transformers
Mulit-Mega-Merge
Multi-Lingual
Afro-Centric
African-Model
Ancient-One
Inference Endpoints
Update README.md
Browse files
README.md
CHANGED
@@ -91,7 +91,7 @@ print(f"Encoded sound file saved to example_base64.txt")
|
|
91 |
decode_base64_to_file(encoded_sound, "decoded_example.mp3")
|
92 |
print("Decoded sound file saved as decoded_example.mp3")
|
93 |
```
|
94 |
-
Pipeline Example: Image Files
|
95 |
``` python
|
96 |
|
97 |
# Encode image file to Base64
|
@@ -103,12 +103,13 @@ decode_base64_to_file(encoded_image, "decoded_example_image.jpg")
|
|
103 |
print("Decoded image file saved as decoded_example_image.jpg")
|
104 |
```
|
105 |
# Explanation of the Functions
|
106 |
-
Encoding Pipeline:
|
107 |
|
108 |
Read the file as binary (rb mode).
|
109 |
Use base64.b64encode() to encode the binary data into Base64 format.
|
110 |
Save the encoded string to an optional file if required.
|
111 |
-
|
|
|
112 |
|
113 |
Decode the Base64 string back to binary using base64.b64decode().
|
114 |
Save the binary data as the output file in its original format.
|
|
|
91 |
decode_base64_to_file(encoded_sound, "decoded_example.mp3")
|
92 |
print("Decoded sound file saved as decoded_example.mp3")
|
93 |
```
|
94 |
+
# Pipeline Example: Image Files
|
95 |
``` python
|
96 |
|
97 |
# Encode image file to Base64
|
|
|
103 |
print("Decoded image file saved as decoded_example_image.jpg")
|
104 |
```
|
105 |
# Explanation of the Functions
|
106 |
+
### Encoding Pipeline:
|
107 |
|
108 |
Read the file as binary (rb mode).
|
109 |
Use base64.b64encode() to encode the binary data into Base64 format.
|
110 |
Save the encoded string to an optional file if required.
|
111 |
+
|
112 |
+
### Decoding Pipeline:
|
113 |
|
114 |
Decode the Base64 string back to binary using base64.b64decode().
|
115 |
Save the binary data as the output file in its original format.
|