Spaces:
Running
Running
ThorbenFroehlking
commited on
Commit
·
c8b39c2
1
Parent(s):
70d9713
Updated
Browse files- .ipynb_checkpoints/app-checkpoint.py +14 -4
- app.py +14 -4
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -638,10 +638,20 @@ with gr.Blocks(css="""
|
|
638 |
"normalized_scores": normalized_scores.tolist()
|
639 |
}
|
640 |
|
641 |
-
gr.Interface(
|
642 |
-
|
643 |
-
|
644 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
)
|
646 |
|
647 |
|
|
|
638 |
"normalized_scores": normalized_scores.tolist()
|
639 |
}
|
640 |
|
641 |
+
#gr.Interface(
|
642 |
+
# fn=predict_utils,
|
643 |
+
# inputs=gr.Textbox(visible=False),
|
644 |
+
# outputs=gr.Textbox(visible=False)
|
645 |
+
#)
|
646 |
+
dummy_input = gr.Textbox(visible=False)
|
647 |
+
dummy_output = gr.Textbox(visible=False)
|
648 |
+
|
649 |
+
# Create a dummy button that's invisible
|
650 |
+
dummy_btn = gr.Button("Predict Sequence", visible=False)
|
651 |
+
dummy_btn.click(
|
652 |
+
predict_utils,
|
653 |
+
inputs=[dummy_input],
|
654 |
+
outputs=[dummy_output]
|
655 |
)
|
656 |
|
657 |
|
app.py
CHANGED
@@ -638,10 +638,20 @@ with gr.Blocks(css="""
|
|
638 |
"normalized_scores": normalized_scores.tolist()
|
639 |
}
|
640 |
|
641 |
-
gr.Interface(
|
642 |
-
|
643 |
-
|
644 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
)
|
646 |
|
647 |
|
|
|
638 |
"normalized_scores": normalized_scores.tolist()
|
639 |
}
|
640 |
|
641 |
+
#gr.Interface(
|
642 |
+
# fn=predict_utils,
|
643 |
+
# inputs=gr.Textbox(visible=False),
|
644 |
+
# outputs=gr.Textbox(visible=False)
|
645 |
+
#)
|
646 |
+
dummy_input = gr.Textbox(visible=False)
|
647 |
+
dummy_output = gr.Textbox(visible=False)
|
648 |
+
|
649 |
+
# Create a dummy button that's invisible
|
650 |
+
dummy_btn = gr.Button("Predict Sequence", visible=False)
|
651 |
+
dummy_btn.click(
|
652 |
+
predict_utils,
|
653 |
+
inputs=[dummy_input],
|
654 |
+
outputs=[dummy_output]
|
655 |
)
|
656 |
|
657 |
|