abdiharyadi commited on
Commit
2d27f56
β€’
1 Parent(s): d367528

style: change to column-style

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