Spaces:
Running on Zero
Running on Zero
Update app file
Browse files
app.py
CHANGED
|
@@ -58,9 +58,9 @@ def classify(sequence):
|
|
| 58 |
return "Potential Allergen" if pred.item() == 1 else "Non-Allergen"
|
| 59 |
|
| 60 |
|
| 61 |
-
demo = gr.Interface(fn=classify,
|
| 62 |
-
inputs=gr.Textbox(lines=3, placeholder="Enter protein sequence..."),
|
| 63 |
-
outputs=gr.Label(label="Prediction"))
|
| 64 |
|
| 65 |
# if __name__ == "__main__":
|
| 66 |
# demo.launch()
|
|
|
|
| 58 |
return "Potential Allergen" if pred.item() == 1 else "Non-Allergen"
|
| 59 |
|
| 60 |
|
| 61 |
+
# demo = gr.Interface(fn=classify,
|
| 62 |
+
# inputs=gr.Textbox(lines=3, placeholder="Enter protein sequence..."),
|
| 63 |
+
# outputs=gr.Label(label="Prediction"))
|
| 64 |
|
| 65 |
# if __name__ == "__main__":
|
| 66 |
# demo.launch()
|