Update app.py
Browse files72 unmodified lines73747576777778787980818272 unmodified lines try: # Generate response using the model with st.spinner("Generating response..."): # Pass inputs as positional arguments to the Gradio model response = demo( inputs=f"{system_message}\n\nUser: {prompt}\nAssistant:", max_length=max_tokens, # Matches Gradio's expected parameter name f"{system_message}\n\nUser: {prompt}\nAssistant:", max_length=max_tokens, # Gradio parameter temperature=temperature, top_p=top_p )app.py+3-2