gojiteji commited on
Commit
108f368
1 Parent(s): b286fa8

多数決に戻した

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,13 +48,13 @@ def greet(sue):
48
  text1="BERT-1"+MELCHIOR(sue)
49
  text2="GPT-2"+CASPER(sue)
50
  text3="mBERT-3"+BALTHASAR(sue)
51
- return text1+" "+text2+" "+text3+"\n___\n\n"+("|可決|" if sum(votes[-3:])==3 else "| 否決 |")+"\n___"
52
 
53
 
54
  css="@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@800&display=swap'); .gradio-container {background-color: black} .gr-button {background-color: blue;color:black; weight:200%;font-family:'Shippori Mincho', serif;}"
55
  css+=".block{color:orange;} ::placeholder {font-size:35%} .gr-box {text-align: center;font-size: 125%;border-color:orange;background-color: #000000;weight:200%;font-family:'Shippori Mincho', serif;}:disabled {color: orange;opacity:1.0;}"
56
  with gr.Blocks(css=css) as demo:
57
- sue = gr.Textbox(label="NAGI System",placeholder="決議を入力(全一致で可決)")
58
  greet_btn = gr.Button("提訴")
59
  output = gr.Textbox(label="決議",placeholder="本システムは事前学習モデルのpromptにより行われています.決議結果に対して当サービス開発者は一切の責任を負いません.")
60
  greet_btn.click(fn=greet, inputs=sue, outputs=output)
 
48
  text1="BERT-1"+MELCHIOR(sue)
49
  text2="GPT-2"+CASPER(sue)
50
  text3="mBERT-3"+BALTHASAR(sue)
51
+ return text1+" "+text2+" "+text3+"\n___\n\n"+("|可決|" if sum(votes[-3:])>0 else "| 否決 |")+"\n___"
52
 
53
 
54
  css="@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@800&display=swap'); .gradio-container {background-color: black} .gr-button {background-color: blue;color:black; weight:200%;font-family:'Shippori Mincho', serif;}"
55
  css+=".block{color:orange;} ::placeholder {font-size:35%} .gr-box {text-align: center;font-size: 125%;border-color:orange;background-color: #000000;weight:200%;font-family:'Shippori Mincho', serif;}:disabled {color: orange;opacity:1.0;}"
56
  with gr.Blocks(css=css) as demo:
57
+ sue = gr.Textbox(label="NAGI System",placeholder="決議を入力(多数決)")
58
  greet_btn = gr.Button("提訴")
59
  output = gr.Textbox(label="決議",placeholder="本システムは事前学習モデルのpromptにより行われています.決議結果に対して当サービス開発者は一切の責任を負いません.")
60
  greet_btn.click(fn=greet, inputs=sue, outputs=output)