Adityadn commited on
Commit
af4cf72
·
verified ·
1 Parent(s): 4691065

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -4,7 +4,10 @@ import gradio as gr
4
 
5
  def analyze_text(text):
6
  # Lakukan analisis atau pemrosesan teks di sini
7
- result = f"Anda memasukkan teks: {text}"
 
 
 
8
  return result
9
 
10
  iface = gr.Interface(
 
4
 
5
  def analyze_text(text):
6
  # Lakukan analisis atau pemrosesan teks di sini
7
+ if text != "":
8
+ result = f"Anda memasukkan teks: {text}"
9
+ else:
10
+ result = "MASUKKIN TEKS GOBLOK"
11
  return result
12
 
13
  iface = gr.Interface(