wenkai commited on
Commit
da19b49
ยท
verified ยท
1 Parent(s): d0dd902

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -7
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
- with gr.Row():
293
- with gr.Column():
294
- upvote_button = gr.Button("๐Ÿ‘")
295
  with gr.Column():
296
- downvote_button = gr.Button("๐Ÿ‘Ž")
 
 
 
 
 
297
  with gr.Column():
298
  vote_markdown = gr.Markdown(label="Output")
299
- with gr.Column():
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")