Spaces:
Runtime error
Runtime error
Update app.py
Browse files114 unmodified lines115116117118119120114 unmodified linesdemo = gr.Interface(fn=show_reframe_change,inputs=[gr.Textbox(lines=2, placeholder="Please input the sentence to be reframed.", label="Original Text"), gr.Radio(["thankfulness", "neutralizing", "optimism", "growth", "impermanence", "self_affirmation"], label="Strategy to use?")],outputs=gr.HighlightedText(label="Diff",combine_adjacent=True,).style(color_map={"+": "green", "-": "red"}),)demo.launch(show_api=True)114 unmodified lines115116117118119120114 unmodified linesdemo = gr.Interface(fn=show_reframe_change,inputs=[gr.Textbox(lines=2, placeholder="Please input the sentence to be reframed.", label="Original Text"), gr.Radio(["thankfulness", "neutralizing", "optimism", "growth", "impermanence", "self_affirmation"], label="Strategy to use?")],outputs=gr.Textbox(lines=2, label="Reframed Text"),# gr.HighlightedText(label="Diff",combine_adjacent=True,).style(color_map={"+": "green", "-": "red"}),)demo.launch(show_api=True)
app.py+1-1