Update app.py
Browse files
app.py
CHANGED
|
@@ -251,6 +251,33 @@ css = """
|
|
| 251 |
overflow: auto;
|
| 252 |
border: 1px solid #ccc;
|
| 253 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
/* Style for the upvote button */
|
| 255 |
.upvote-button {
|
| 256 |
width: 500px; /* Set button width */
|
|
@@ -284,20 +311,24 @@ with gr.Blocks(css=css) as demo:
|
|
| 284 |
with gr.Column():
|
| 285 |
input_protein = gr.Textbox(type="text", label="Upload sequence")
|
| 286 |
prompt = gr.Textbox(type="text", label="Taxonomy Prompt (Optional)")
|
| 287 |
-
submit_btn = gr.Button(value="Submit")
|
| 288 |
with gr.Column():
|
| 289 |
# output_text = gr.Textbox(label="Output Text")
|
| 290 |
with gr.Accordion('Prediction:', open=True):
|
| 291 |
output_markdown = gr.Markdown(label="Output")
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
with gr.Column():
|
| 296 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
with gr.Column():
|
| 298 |
vote_markdown = gr.Markdown(label="Output")
|
| 299 |
-
|
| 300 |
-
vote_temp = gr.Markdown()
|
| 301 |
with gr.Row():
|
| 302 |
inputs = gr.Textbox(type="text", label="Your feedback")
|
| 303 |
feedback_markdown = gr.Markdown(label="Output")
|
|
|
|
| 251 |
overflow: auto;
|
| 252 |
border: 1px solid #ccc;
|
| 253 |
}
|
| 254 |
+
.submit-btn {
|
| 255 |
+
display: flex;
|
| 256 |
+
width: 100%;
|
| 257 |
+
gap: 10px;
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
.vote-container {
|
| 261 |
+
display: flex;
|
| 262 |
+
width: 100%;
|
| 263 |
+
gap: 10px;
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
.vote-buttons {
|
| 267 |
+
display: flex;
|
| 268 |
+
width: 100%;
|
| 269 |
+
gap: 10px;
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
.vote-btn {
|
| 273 |
+
display: flex;
|
| 274 |
+
width: 100%;
|
| 275 |
+
gap: 10px;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
.vote-content {
|
| 279 |
+
flex: 3;
|
| 280 |
+
}
|
| 281 |
/* Style for the upvote button */
|
| 282 |
.upvote-button {
|
| 283 |
width: 500px; /* Set button width */
|
|
|
|
| 311 |
with gr.Column():
|
| 312 |
input_protein = gr.Textbox(type="text", label="Upload sequence")
|
| 313 |
prompt = gr.Textbox(type="text", label="Taxonomy Prompt (Optional)")
|
| 314 |
+
submit_btn = gr.Button(value="Submit", elem_classes=["submit-btn"])
|
| 315 |
with gr.Column():
|
| 316 |
# output_text = gr.Textbox(label="Output Text")
|
| 317 |
with gr.Accordion('Prediction:', open=True):
|
| 318 |
output_markdown = gr.Markdown(label="Output")
|
| 319 |
+
# ๆ็ฅจๆ้ฎๅๅ
ๅฎน็ๅฎนๅจ
|
| 320 |
+
with gr.Row(elem_classes=["vote-container"]):
|
| 321 |
+
# ๆ็ฅจๆ้ฎ็ป
|
| 322 |
with gr.Column():
|
| 323 |
+
with gr.Row():
|
| 324 |
+
with gr.Column():
|
| 325 |
+
upvote_button = gr.Button("๐", elem_classes=["vote-btn"])
|
| 326 |
+
with gr.Column():
|
| 327 |
+
downvote_button = gr.Button("๐", elem_classes=["vote-btn"])
|
| 328 |
+
|
| 329 |
with gr.Column():
|
| 330 |
vote_markdown = gr.Markdown(label="Output")
|
| 331 |
+
|
|
|
|
| 332 |
with gr.Row():
|
| 333 |
inputs = gr.Textbox(type="text", label="Your feedback")
|
| 334 |
feedback_markdown = gr.Markdown(label="Output")
|