Spaces:
Runtime error
Runtime error
sujeshpadhi
commited on
Commit
•
74248bf
1
Parent(s):
9b3098e
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
#installing the gradio transformer
|
2 |
-
|
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
|
10 |
|
11 |
# this model was loaded from https://hf.co/models
|
|
|
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
|
10 |
|
11 |
# this model was loaded from https://hf.co/models
|