Update app.py
Browse files88 unmodified lines899091929394952 unmodified lines989910010110210310410510610710810911011111211311488 unmodified linesdf = pd.DataFrame({'Original Residue': original_residues,'Predicted Residues (in order of decreasing likelihood)': mutations,'Position': positions})2 unmodified linesdemo = gr.Interface(fn=process_sequence,inputs=["text",gr.Dataframe(headers=["start", "end"],datatype=["number", "number"],row_count=(1, "fixed"),col_count=(2, "fixed"),),gr.Dropdown([i for i in range(1, 21)]), # Dropdown with numbers from 1 to 20 as integers],outputs=["dataframe", "image"],description="Choose a number between 1-20 to predict n tokens for each position. Choose the start and end index of the domain of interest (indexing starts at 1).",)if __name__ == "__main__":88 unmodified lines899091929394952 unmodified lines989910010110210310410510610710810911011111211311411511611711888 unmodified linesdf = pd.DataFrame({'Original Residue': original_residues,'Predicted Residues': mutations,'Position': positions})2 unmodified linesdemo = gr.Interface(fn=process_sequence,inputs=[gr.Textbox(label="Sequence", placeholder="Enter the protein sequence here"),gr.Dataframe(headers=["start", "end"],datatype=["number", "number"],row_count=(1, "fixed"),col_count=(2, "fixed"),label="Domain Bounds"),gr.Dropdown([i for i in range(1, 21)], label="Top N Tokens"),],outputs=[gr.Dataframe(label="Predicted Tokens (in order of decreasing likelihood)"),gr.Image(type="pil", label="Heatmap"),],description="Choose a number from the dropdown to predict N tokens for each position. Choose the start and end index of the domain of interest (indexing starts at 1).",)if __name__ == "__main__":
app.py+9-5