abdiharyadi commited on
Commit
d367528
·
1 Parent(s): 19c93cc

feat: add acknowledgement

Browse files
Files changed (1) hide show
  1. app.py +27 -17
app.py CHANGED
@@ -137,21 +137,31 @@ def run(text, source_style):
137
  result
138
  )
139
 
140
- demo = gr.Interface(
141
- fn=run,
142
- inputs=[
143
- gr.Textbox(label="Teks (Text)"),
144
- gr.Radio(label="Gaya sumber (Source style)", choices=[
145
- ("Positif (Positive)", "LABEL_1"),
146
- ("Negatif (Negative)", "LABEL_0"),
147
- ], value="LABEL_1"),
148
- ],
149
- outputs=[
150
- gr.Textbox(label="Graf AMR sumber (Source AMR graph)"),
151
- gr.Textbox(label="Triplet (Triplets)"),
152
- gr.Textbox(label="Kata bergaya (Style words)"),
153
- gr.Textbox(label="Graf AMR target (Target AMR graph)"),
154
- gr.Textbox(label="Hasil (Result)"),
155
- ]
156
- )
 
 
 
 
 
 
 
 
 
 
157
  demo.launch()
 
137
  result
138
  )
139
 
140
+ with gr.Blocks() as demo:
141
+ gr.Interface(
142
+ fn=run,
143
+ inputs=[
144
+ gr.Textbox(label="Teks (Text)"),
145
+ gr.Radio(label="Gaya sumber (Source style)", choices=[
146
+ ("Positif (Positive)", "LABEL_1"),
147
+ ("Negatif (Negative)", "LABEL_0"),
148
+ ], value="LABEL_1"),
149
+ ],
150
+ outputs=[
151
+ gr.Textbox(label="Graf AMR sumber (Source AMR graph)"),
152
+ gr.Textbox(label="Triplet (Triplets)"),
153
+ gr.Textbox(label="Kata bergaya (Style words)"),
154
+ gr.Textbox(label="Graf AMR target (Target AMR graph)"),
155
+ gr.Textbox(label="Hasil (Result)"),
156
+ ]
157
+ )
158
+ gr.Markdown("""
159
+ # Pengakuan
160
+ Demo ini disiapkan untuk Program Penelitian dan Pengabdian Masyarakat STEI ITB 2024.
161
+
162
+ **Tim Peneliti**:
163
+ - Masayu Leylia Khodra ([email protected])
164
+ - M. Abdi Haryadi. H ([email protected])
165
+ """)
166
+
167
  demo.launch()