Spaces:
Running
Running
abdiharyadi
commited on
Commit
β’
2d27f56
1
Parent(s):
d367528
style: change to column-style
Browse files
app.py
CHANGED
@@ -138,30 +138,34 @@ def run(text, source_style):
|
|
138 |
)
|
139 |
|
140 |
with gr.Blocks() as demo:
|
141 |
-
gr.
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
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()
|