Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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):
|