jmLuis commited on
Commit
0513b52
1 Parent(s): 5847e15

Added col width

Browse files
Files changed (1) hide show
  1. app.py +1 -20
app.py CHANGED
@@ -40,26 +40,6 @@ def classify(text):
40
  results.extend([(paragraph, policyIssueFrame), ("\n\n", None)])
41
  return results
42
 
43
- # demo = gr.Interface(
44
- # fn=classify,
45
- # inputs=gr.Textbox(lines=10, label="Input Text", placeholder="Insert article sentence here. Each sentence should be divided by line break to be classified separately..."),
46
- # outputs=gr.HighlightedText(),
47
- # title=title,
48
- # examples=examples,
49
- # allow_flagging="never",
50
-
51
- # )
52
-
53
- link_text = "Click here to visit Google"
54
- link_url = "https://www.google.com"
55
-
56
- def display_link():
57
- return f'<a href="{link_url}" target="_blank">{link_text}</a>'
58
-
59
- # Dummy input function, not used in this example
60
- def dummy_input():
61
- pass
62
-
63
 
64
  values = [
65
  ["1. Economic Frame", "Cost, benefits, or monetary/financial implications"],
@@ -92,6 +72,7 @@ with gr.Blocks() as demo:
92
  value= values,
93
  headers=["Policy Issue Frame", "Description"],
94
  datatype=["str", "str"],
 
95
  row_count=(15, "fixed"),
96
  col_count=(2, "fixed"),
97
  )
 
40
  results.extend([(paragraph, policyIssueFrame), ("\n\n", None)])
41
  return results
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  values = [
45
  ["1. Economic Frame", "Cost, benefits, or monetary/financial implications"],
 
72
  value= values,
73
  headers=["Policy Issue Frame", "Description"],
74
  datatype=["str", "str"],
75
+ col_widths=[200, 200],
76
  row_count=(15, "fixed"),
77
  col_count=(2, "fixed"),
78
  )