Spaces:
Runtime error
Runtime error
Update app.py
Browse files11 unmodified lines121314151617181913 unmodified lines3334353637383911 unmodified linesdef format_text(text):# replace some specific text with HTML tagstext = text.replace('[bold]', '<b>').replace('[/bold]', '</b>')text = text.replace('[italic]', '<i>').replace('[/italic]', '</i>')# ... other formattingreturn text13 unmodified linesChatGPT_reply = format_text(ChatGPT_reply)return ChatGPT_replydemo = gr.Interface(fn=CustomChatGPT, inputs = "text", outputs = gr.outputs.Html(), title = "Call Feedback")demo.launch(debug=True, inbrowser=True)11 unmodified lines121314151617181913 unmodified lines3334353637383911 unmodified linesdef format_text(text):# replace some specific text with HTML tagstext = text.replace('[bold]', '**').replace('[/bold]', '**')text = text.replace('[italic]', '*').replace('[/italic]', '*')# ... other formattingreturn text13 unmodified linesChatGPT_reply = format_text(ChatGPT_reply)return ChatGPT_replydemo = gr.Interface(fn=CustomChatGPT, inputs = "text", outputs = gr.outputs.Markdown(), title = "Call Feedback")demo.launch(debug=True, inbrowser=True)
app.py+4-4