Spaces:
Build error
Build error
Update app.py
#2
by habi01 - opened
1 unmodified line234556789101112131 unmodified lineimport gradio as gr # Import Gradio for UI
# Load a text-generation model# Load a text-generation modelchatbot = pipeline("text-generation", model="microsoft/DialoGPT-medium")chatbot = pipeline("text-generation", model="habi01/teachbuddy_DialoV2", temperature=0.65, # Slightly lower for consistency top_p=0.85, # Reduce repetition repetition_penalty=1.3, # Punish redundant phrases max_length=100) # Allow longer responses if needed
# Load the classification modelclassifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")app.py+6-1