Spaces:
Sleeping
Sleeping
Update app.py
Browse files31 unmodified lines32333435363738394041424344454647484950515253545556575831 unmodified lines#return response ['choices'][0]['message']['content'].strip()if message:output_text = f"You entered: '{input_text}'. This is processed output."else:response = "Please enter some text in the input box."return responses# Create the Gradio Interfaceiface = gr.Interface(fn=process_text,inputs=gr.Textbox(lines=5, label="Input Text", placeholder="Type something here..."),outputs=gr.Textbox(lines=5, label="Output Text"),title="My Simple Text Processing Space",description="Enter text in the input box and see the processed output.")# Launch the appif chatbot == 'chatbot':iface.launch()chatbot = gr.ChatInterface(respond, type = "messages", theme = "shivi/calm_seafoam")chatbot.launch(debug=True)31 unmodified lines32333435363731 unmodified lines#return response ['choices'][0]['message']['content'].strip()chatbot = gr.ChatInterface(respond, type = "messages", theme = "shivi/calm_seafoam")chatbot.launch(debug=True)
app.py-21