Spaces:
Sleeping
Sleeping
Update text_processor.py
Browse files- text_processor.py +1 -0
text_processor.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
|
| 2 |
# Function for generating text based on input
|
| 3 |
def generate_text(input_text, model, tokenizer):
|
|
|
|
| 1 |
+
import torch
|
| 2 |
|
| 3 |
# Function for generating text based on input
|
| 4 |
def generate_text(input_text, model, tokenizer):
|