NHLOCAL commited on
Commit
8ab44c3
1 Parent(s): ddc9b43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -16,13 +16,5 @@ def parse_text(new_text):
16
  confidence_score = probabilities[0, 1]
17
  return '转谞"讱' if prediction[0] == 1 else '讗讞专', confidence_score
18
 
19
- # Define the style using Gradio's custom CSS feature
20
- style = gr.Interface(fn=parse_text, inputs="text", outputs=["text", "number"], title="讙讬诇讜讬 驻住讜拽讬 讛转谞\"讱 讘讗诪爪注讜转 AI",
21
- description="讛拽诇讬讚讜 讗转 讛讟拽住讟 砖转专爪讜, 讜讙诇讜 讛讗诐 讛讜讗 讗讻谉 诪讜驻讬注 讘转谞\"讱 讘讗诪爪注讜转 拽住诐 讛讘讬谞讛 讛诪诇讗讻讜转讬转",
22
- theme="compact", allow_flagging="auto",
23
- css=""".input-box {width: 90%; padding: 10px; margin-bottom: 15px; border: none; border-radius: 8px; background-color: #f2f2f2; color: #333; resize: none;}
24
- .output-box {width: 90%; padding: 10px; border: none; border-radius: 8px; background-color: #f2f2f2; color: #333;}
25
- .btn {width: 90%; padding: 10px; border: none; border-radius: 8px; background-color: #5d8d77; color: white; cursor: pointer; transition: background-color 0.3s ease-in-out;}
26
- .btn:hover {background-color: #507b66;}
27
- """)
28
- style.launch()
 
16
  confidence_score = probabilities[0, 1]
17
  return '转谞"讱' if prediction[0] == 1 else '讗讞专', confidence_score
18
 
19
+ iface = gr.Interface(fn=parse_text, inputs="text", outputs=["text", "number"], title='讙讬诇讜讬 驻住讜拽讬 讛转谞"讱 讘讗诪爪注讜转 AI', description='讛讝谉 讟拽住讟 讻讚讬 诇住讜讜讙 讗诐 讛讜讗 诪讛转谞"讱 讗讜 诇讗.')
20
+ iface.launch()