tamatwi commited on
Commit
695e718
·
verified ·
1 Parent(s): c0c9825

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,4 +1,7 @@
1
  from spaces import GPU
 
 
 
2
 
3
  @GPU(duration=120)
4
  def generate_text(prompt, max_length):
 
1
  from spaces import GPU
2
+ import torch
3
+ from transformers import pipeline, AutoTokenizer
4
+ import gradio as gr
5
 
6
  @GPU(duration=120)
7
  def generate_text(prompt, max_length):