Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -158,10 +158,7 @@ Non-human probability: {float(probs[0][0]):0.4f}
|
|
158 |
iface = gr.Interface(
|
159 |
fn=predict_sequence,
|
160 |
inputs=[
|
161 |
-
gr.File(label="Upload FASTA file", file_types=[".fasta", ".fa", ".txt"])
|
162 |
-
# Adding a text input as an alternative
|
163 |
-
gr.Textbox(label="Or paste FASTA sequence here", lines=10)
|
164 |
-
],
|
165 |
outputs=gr.Textbox(label="Prediction Results", lines=10),
|
166 |
title="Virus Host Classifier",
|
167 |
description="""Upload a FASTA file or paste your sequence to predict whether a virus sequence is likely to infect human or non-human hosts.
|
|
|
158 |
iface = gr.Interface(
|
159 |
fn=predict_sequence,
|
160 |
inputs=[
|
161 |
+
gr.File(label="Upload FASTA file", file_types=[".fasta", ".fa", ".txt"])
|
|
|
|
|
|
|
162 |
outputs=gr.Textbox(label="Prediction Results", lines=10),
|
163 |
title="Virus Host Classifier",
|
164 |
description="""Upload a FASTA file or paste your sequence to predict whether a virus sequence is likely to infect human or non-human hosts.
|