Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -30,10 +30,6 @@ def read_root():
|
|
30 |
def read_root(data: req):
|
31 |
print("Prompt:", data.prompt)
|
32 |
print("Length:", data.length)
|
33 |
-
|
34 |
-
# Using CUDA for an optimal experience
|
35 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
36 |
-
model = model.to(device)
|
37 |
|
38 |
input_text = data.prompt
|
39 |
|
|
|
30 |
def read_root(data: req):
|
31 |
print("Prompt:", data.prompt)
|
32 |
print("Length:", data.length)
|
|
|
|
|
|
|
|
|
33 |
|
34 |
input_text = data.prompt
|
35 |
|