jeydipak commited on
Commit
4235e44
1 Parent(s): 0d10780

added torch

Browse files
Files changed (1) hide show
  1. 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 = []