VyLala commited on
Commit
fc7ba67
·
verified ·
1 Parent(s): c80d5dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -268,7 +268,7 @@ with gr.Blocks() as interface:
268
  # Use gr.Markdown to add a visual space
269
  gr.Markdown(" ") # A simple blank markdown can create space
270
 
271
- report_button = gr.Button("Report inaccurate output to receive 1 extra free query",elem_id="run-btn")
272
  report_textbox = gr.Textbox(
273
  label="Describe the issue",
274
  lines=4,
@@ -1165,17 +1165,17 @@ with gr.Blocks() as interface:
1165
  style = "padding: 10px; border: 1px solid #555; vertical-align: top;"
1166
 
1167
  # For specific columns like Haplogroup, force nowrap
1168
- if header in ["Country Explanation", "Sample Type Explanation"]:
1169
- style += (
1170
- " max-width: 200px;"
1171
- " white-space: normal;"
1172
- " word-wrap: break-word;"
1173
- " overflow-wrap: break-word;"
1174
- " word-break: break-word;"
1175
- " text-overflow: clip;" # disable ellipsis
1176
- )
1177
 
1178
- elif header in ["Sample ID", "Predicted Country", "Predicted Sample Type", "Time cost"]:
1179
  style += " white-space: nowrap; text-overflow: ellipsis; max-width: 200px; overflow: hidden;"
1180
 
1181
  # if header == "Sources" and isinstance(col, str) and col.strip().lower().startswith("http"):
 
268
  # Use gr.Markdown to add a visual space
269
  gr.Markdown(" ") # A simple blank markdown can create space
270
 
271
+ report_button = gr.Button("Report an unsatisfactory output for a free credit.",elem_id="run-btn")
272
  report_textbox = gr.Textbox(
273
  label="Describe the issue",
274
  lines=4,
 
1165
  style = "padding: 10px; border: 1px solid #555; vertical-align: top;"
1166
 
1167
  # For specific columns like Haplogroup, force nowrap
1168
+ # if header in ["Country Explanation", "Sample Type Explanation"]:
1169
+ # style += (
1170
+ # " max-width: 200px;"
1171
+ # " white-space: normal;"
1172
+ # " word-wrap: break-word;"
1173
+ # " overflow-wrap: break-word;"
1174
+ # " word-break: break-word;"
1175
+ # " text-overflow: clip;" # disable ellipsis
1176
+ # )
1177
 
1178
+ if header in ["Sample ID", "Predicted Country", "Predicted Sample Type", "Time cost"]:
1179
  style += " white-space: nowrap; text-overflow: ellipsis; max-width: 200px; overflow: hidden;"
1180
 
1181
  # if header == "Sources" and isinstance(col, str) and col.strip().lower().startswith("http"):