Omars2003
commited on
Commit
·
6bada6f
1
Parent(s):
a5abb21
tsmall prueba
Browse files- app.py +2 -1
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -2,7 +2,8 @@ import gradio as gr
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import py3Dmol
|
| 4 |
|
| 5 |
-
rna_pipeline = pipeline("text2text-generation", model="
|
|
|
|
| 6 |
|
| 7 |
def predict_and_visualize(seq):
|
| 8 |
result = rna_pipeline(seq, max_length=512)[0]["generated_text"]
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import py3Dmol
|
| 4 |
|
| 5 |
+
rna_pipeline = pipeline("text2text-generation", model="t5-small")
|
| 6 |
+
|
| 7 |
|
| 8 |
def predict_and_visualize(seq):
|
| 9 |
result = rna_pipeline(seq, max_length=512)[0]["generated_text"]
|
requirements.txt
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
transformers
|
| 2 |
py3Dmol
|
|
|
|
|
|
| 1 |
transformers
|
| 2 |
py3Dmol
|
| 3 |
+
torch
|