fittar commited on
Commit
f81735b
1 Parent(s): 98a1648

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
 
3
  from transformers import GPT2LMHeadModel, GPT2Tokenizer
 
4
 
5
 
6
  def generate(text, model, tokenizer,device,do_sample,top_k=100, epsilon_cutoff=.00005, temperature=1):
 
1
  import gradio as gr
2
 
3
  from transformers import GPT2LMHeadModel, GPT2Tokenizer
4
+ import torch
5
 
6
 
7
  def generate(text, model, tokenizer,device,do_sample,top_k=100, epsilon_cutoff=.00005, temperature=1):