wenkai commited on
Commit
2592450
·
verified ·
1 Parent(s): 848fbff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -238,14 +238,6 @@ Thanks for the support from ProtonUnfold Tech.  Co., Ltd (https://www.protonunf
238
  # # Launch the interface
239
  # iface.launch()
240
 
241
- css = """
242
- #output {
243
- height: 500px;
244
- overflow: auto;
245
- border: 1px solid #ccc;
246
- }
247
- """
248
-
249
  css = """
250
  #output {
251
  height: 500px;
@@ -268,6 +260,12 @@ css = """
268
  font-size: 20px; /* Set font size */
269
  background-color: #f8d7da; /* Set background color */
270
  border-radius: 5px; /* Rounded corners */
 
 
 
 
 
 
271
  }
272
  """
273
 
@@ -292,7 +290,7 @@ with gr.Blocks(css=css) as demo:
292
  inputs = gr.Textbox(type="text", label="Your feedback")
293
  feedback_markdown = gr.Markdown(label="Output")
294
  with gr.Row():
295
- feedback_btn = gr.Button(value="Submit", elem_classes="upvote-button")
296
  # O14813 train index 127, 266, 738, 1060 test index 4
297
  gr.Examples(
298
  examples=[
@@ -314,6 +312,5 @@ with gr.Blocks(css=css) as demo:
314
  downvote_button.click(downvote, vote_id, vote_markdown)
315
  feedback_btn.click(save_feedback, [inputs], [feedback_markdown])
316
 
317
-
318
  demo.launch(debug=True)
319
 
 
238
  # # Launch the interface
239
  # iface.launch()
240
 
 
 
 
 
 
 
 
 
241
  css = """
242
  #output {
243
  height: 500px;
 
260
  font-size: 20px; /* Set font size */
261
  background-color: #f8d7da; /* Set background color */
262
  border-radius: 5px; /* Rounded corners */
263
+ }
264
+ .feedback {
265
+ width: 40px; /* Set button width */
266
+ height: 30px; /* Set button height */
267
+ font-size: 20px; /* Set font size */
268
+ background-color: #f8d7da; /* Set background color */
269
  }
270
  """
271
 
 
290
  inputs = gr.Textbox(type="text", label="Your feedback")
291
  feedback_markdown = gr.Markdown(label="Output")
292
  with gr.Row():
293
+ feedback_btn = gr.Button(value="Feedback Submit", elem_classes="feedback")
294
  # O14813 train index 127, 266, 738, 1060 test index 4
295
  gr.Examples(
296
  examples=[
 
312
  downvote_button.click(downvote, vote_id, vote_markdown)
313
  feedback_btn.click(save_feedback, [inputs], [feedback_markdown])
314
 
 
315
  demo.launch(debug=True)
316