Spaces:
Runtime error
Runtime error
added torch
Browse files- pages/task3.py +1 -0
pages/task3.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
3 |
import time
|
|
|
4 |
|
5 |
def generate_text(model, tokenizer, prompt, max_length, num_generations, temperature):
|
6 |
generated_texts = []
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
3 |
import time
|
4 |
+
import torch
|
5 |
|
6 |
def generate_text(model, tokenizer, prompt, max_length, num_generations, temperature):
|
7 |
generated_texts = []
|