Spaces:
Runtime error
Runtime error
sujeshpadhi
commited on
Commit
•
9b3098e
1
Parent(s):
37ddcd9
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
#installing the gradio transformer
|
2 |
-
|
3 |
|
4 |
import gradio as gr
|
5 |
#from transformers import AutoModelForSeq2SeqLM, pipeline
|
6 |
-
|
7 |
import json
|
8 |
from transformers import T5ForConditionalGeneration
|
9 |
from model.T5 import T5
|
|
|
1 |
#installing the gradio transformer
|
2 |
+
!pip install -q gradio git+https://github.com/huggingface/transformers gradio torch
|
3 |
|
4 |
import gradio as gr
|
5 |
#from transformers import AutoModelForSeq2SeqLM, pipeline
|
6 |
+
import torch
|
7 |
import json
|
8 |
from transformers import T5ForConditionalGeneration
|
9 |
from model.T5 import T5
|