Adityadn commited on
Commit
027e6e6
·
verified ·
1 Parent(s): e6c6fb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -12
app.py CHANGED
@@ -1,15 +1,16 @@
1
- import gradio as gr
2
-
3
- def analyze_text(text):
4
- # Lakukan analisis atau pemrosesan teks di sini
5
- result = f"Anda memasukkan teks: {text}"
6
- return result
7
-
8
- iface = gr.Interface(
9
- fn=analyze_text,
10
- inputs=gr.Textbox(), # Menggunakan input textbox
11
- outputs="text" # Menetapkan output ke tipe teks
12
- )
 
13
 
14
  iface.launch()
15
 
@@ -33,3 +34,5 @@ def process():
33
  subprocess.run(command)# Menjalankan file batch
34
  print(command)
35
  # subprocess.run([batch_file_path], shell=True)
 
 
 
1
+ def test():
2
+ import gradio as gr
3
+
4
+ def analyze_text(text):
5
+ # Lakukan analisis atau pemrosesan teks di sini
6
+ result = f"Anda memasukkan teks: {text}"
7
+ return result
8
+
9
+ iface = gr.Interface(
10
+ fn=analyze_text,
11
+ inputs=gr.Textbox(), # Menggunakan input textbox
12
+ outputs="text" # Menetapkan output ke tipe teks
13
+ )
14
 
15
  iface.launch()
16
 
 
34
  subprocess.run(command)# Menjalankan file batch
35
  print(command)
36
  # subprocess.run([batch_file_path], shell=True)
37
+
38
+ process()