Spaces:
Build error
Build error
File size: 356 Bytes
214c96a e2ed786 214c96a e2ed786 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
from transformers import pipeline
gr.load("models/codellama/CodeLlama-7b-hf").launch()
# Prompt the user for input
user_input = input("AI: Ask me anything\nMe: ")
# Generate a response using the pipeline
generated_response = text_generation_pipeline(user_input, max_length=200)[0]['generated_text']
print("AI:", generated_response)
|