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()