Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,9 @@ def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition
|
|
42 |
|
43 |
with gr.Blocks() as demo:
|
44 |
input_text = gr.Textbox(placeholder="Enter your prompt here...", lines=2, max_lines=2, label="Prompt")
|
45 |
-
output_text = gr.Textbox(label="Output", interactive=True, lines=10)
|
46 |
submit_button = gr.Button("Generate")
|
|
|
|
|
47 |
|
48 |
submit_button.click(fn=generate, inputs=input_text, outputs=output_text)
|
49 |
|
|
|
42 |
|
43 |
with gr.Blocks() as demo:
|
44 |
input_text = gr.Textbox(placeholder="Enter your prompt here...", lines=2, max_lines=2, label="Prompt")
|
|
|
45 |
submit_button = gr.Button("Generate")
|
46 |
+
output_text = gr.Textbox(label="Output", interactive=True, lines=10)
|
47 |
+
|
48 |
|
49 |
submit_button.click(fn=generate, inputs=input_text, outputs=output_text)
|
50 |
|