Spaces:
Build error
Build error
Create app.py
Browse files12345678910111213141516171819202122import gradio as grimport subprocess
# Funktion für das Modelldef generate_response(prompt): result = subprocess.run( ["./llama.cpp/main", "-m", "/models/Falcon3-7B-Instruct-q4_0.gguf", "-p", prompt], capture_output=True, text=True ) return result.stdout
# Gradio Interfaceiface = gr.Interface( fn=generate_response, inputs=gr.Textbox(label="Eingabe"), outputs=gr.Textbox(label="Antwort"), title="Falcon 7B Chatbot", description="Gib eine Eingabe ein und erhalte eine Antwort vom Falcon 7B GGUF-Modell.")
# Starteniface.launch()app.pyAdded+22