Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,13 +39,8 @@ def inference(text, sentence_mapping, character_dict, selected_style):
|
|
39 |
|
40 |
gradio_interface = gr.Interface(
|
41 |
fn=inference,
|
42 |
-
inputs=
|
43 |
-
|
44 |
-
gr.inputs.Textbox(label="Sentence Mapping"),
|
45 |
-
gr.inputs.Textbox(label="Character Dict"),
|
46 |
-
gr.inputs.Dropdown(["Style 1", "Style 2", "Style 3"], label="Selected Style")
|
47 |
-
],
|
48 |
-
outputs="json" # Return the dictionary of images
|
49 |
)
|
50 |
|
51 |
if __name__ == "__main__":
|
|
|
39 |
|
40 |
gradio_interface = gr.Interface(
|
41 |
fn=inference,
|
42 |
+
inputs="text",
|
43 |
+
outputs="text"
|
|
|
|
|
|
|
|
|
|
|
44 |
)
|
45 |
|
46 |
if __name__ == "__main__":
|