Spaces:
Build error
Build error
Update app.py
Browse files123418 unmodified lines23242526272829from transformers import pipeline"""For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference18 unmodified linesreturn response# If no FAQ match, use the AI model to generate a responseconversation = chatbot(user_input)return conversation[0]['generated_text']# Create the Gradio interface1234518 unmodified lines24252627282930from transformers import pipelineimport gradio as gr # Import Gradio for the interface"""For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference18 unmodified linesreturn response# If no FAQ match, use the AI model to generate a responseconversation = chatbot(user_input, max_length=50, num_return_sequences=1)return conversation[0]['generated_text']# Create the Gradio interface
app.py+2-1