Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,12 @@ def super_prompt(text: str, seed: int, max_new_tokens: int, prompt: str) -> str:
|
|
43 |
|
44 |
demo = gr.Interface(
|
45 |
fn=super_prompt,
|
46 |
-
inputs=[
|
47 |
-
|
|
|
|
|
|
|
|
|
48 |
)
|
49 |
|
50 |
demo.launch()
|
|
|
43 |
|
44 |
demo = gr.Interface(
|
45 |
fn=super_prompt,
|
46 |
+
inputs=[
|
47 |
+
gr.Textbox(label="input text"),
|
48 |
+
gr.Slider(label="seed", min=0, max=2**32, step=1),
|
49 |
+
gr.Slider(label="max_new_tokens", min=0, max=375, step=1),
|
50 |
+
gr.Textbox(label="custom prompt", placeholder="leave empty to use default")],
|
51 |
+
outputs=[gr.Textbox(label="output", lines=6)],
|
52 |
)
|
53 |
|
54 |
demo.launch()
|