Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,14 @@ def inference(text, sentence_mapping, character_dict, selected_style):
|
|
40 |
|
41 |
gradio_interface = gr.Interface(
|
42 |
fn=inference,
|
43 |
-
inputs=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
outputs="text"
|
45 |
)
|
46 |
|
|
|
40 |
|
41 |
gradio_interface = gr.Interface(
|
42 |
fn=inference,
|
43 |
+
inputs=[
|
44 |
+
gr.Textbox(label="Text"),
|
45 |
+
gr.Textbox(label="Sentence Mapping"),
|
46 |
+
gr.Textbox(label="Character Dict"),
|
47 |
+
gr.Dropdown(["Style 1", "Style 2", "Style 3"], label="Selected Style")
|
48 |
+
],
|
49 |
+
inputs=["text", "checkbox", gr.Slider(0, 100)],
|
50 |
+
|
51 |
outputs="text"
|
52 |
)
|
53 |
|