Update app.py
Browse files72 unmodified lines73747576777879808172 unmodified linestry:# Generate response using the modelwith st.spinner("Generating response..."):response = demo(inputs=f"{system_message}\n\nUser: {prompt}\nAssistant:",max_length=max_tokens, # Matches Gradio's expected parameter nametemperature=temperature,top_p=top_p)72 unmodified lines7374757677787980818272 unmodified linestry:# Generate response using the modelwith st.spinner("Generating response..."):# Pass inputs as positional arguments to the Gradio modelresponse = demo(f"{system_message}\n\nUser: {prompt}\nAssistant:",max_length=max_tokens, # Gradio parametertemperature=temperature,top_p=top_p)
app.py+3-2