Spaces:
Running
Running
File size: 413 Bytes
be5fb0f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
from utils import generate
interface = gr.Interface(
fn=generate,
inputs=[
gr.Textbox(label="Prompt", lines=5),
gr.Number(label="Max Tokens", value=100)
],
outputs=gr.Textbox(label="Response"),
title="🧠 Qwen2-0.5B Raw API",
description="Raw access to the Qwen2-0.5B model. Send your full prompt."
)
if __name__ == "__main__":
interface.launch() |