hiyata commited on
Commit
4e29ba7
·
verified ·
1 Parent(s): 301b9cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -157,9 +157,7 @@ Non-human probability: {float(probs[0][0]):0.4f}
157
  # Create Gradio interface with both file upload and text input
158
  iface = gr.Interface(
159
  fn=predict_sequence,
160
- inputs=[
161
- gr.File(label="Upload FASTA file", file_types=[".fasta", ".fa", ".txt"])
162
- ]
163
  outputs=gr.Textbox(label="Prediction Results", lines=10),
164
  title="Virus Host Classifier",
165
  description="""Upload a FASTA file or paste your sequence to predict whether a virus sequence is likely to infect human or non-human hosts.
 
157
  # Create Gradio interface with both file upload and text input
158
  iface = gr.Interface(
159
  fn=predict_sequence,
160
+ inputs=gr.File(label="Upload FASTA file", file_types=[".fasta", ".fa", ".txt"])
 
 
161
  outputs=gr.Textbox(label="Prediction Results", lines=10),
162
  title="Virus Host Classifier",
163
  description="""Upload a FASTA file or paste your sequence to predict whether a virus sequence is likely to infect human or non-human hosts.