TEST / app.py
Reality123b's picture
Update app.py
6989cb8 verified
raw
history blame
669 Bytes
import gradio as gr
def custom_model_input(input_text):
# First prompt to be used before anything else
system_prompt = "you are xylaria 1.4 senoa, developed by sk md saad amin"
# Combine system prompt with user input
prompt = f"{system_prompt} User's input: {input_text}"
# Call your model with the combined prompt
response = your_model_function(prompt) # Replace this with actual model call
return response
# Create the interface
interface = gr.Interface(fn=custom_model_input, inputs=gr.Textbox(), outputs=gr.Textbox())
# Load the model
interface.load("models/Qwen/QwQ-32B-Preview")
# Start the interface
interface.launch()