Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,11 +26,11 @@ import gradio as gr
|
|
26 |
|
27 |
gr.close_all()
|
28 |
demo = gr.Interface(fn=generate_text,
|
29 |
-
inputs=[gr.Textbox(label="Prompt", lines=5)],
|
30 |
-
outputs=[gr.Textbox(label="Generated Text", lines=5)],
|
31 |
title="Text Generator",
|
32 |
description="Text generation using `mistralai/Mistral-7B-Instruct-v0.1` model.",
|
33 |
-
examples=["I like ice cream", "That cat is cute"]
|
34 |
)
|
35 |
|
36 |
demo.launch()
|
|
|
26 |
|
27 |
gr.close_all()
|
28 |
demo = gr.Interface(fn=generate_text,
|
29 |
+
inputs=[gr.Textbox(label="Prompt", lines=5, placeholder="Enter your text here...")],
|
30 |
+
outputs=[gr.Textbox(label="Generated Text", lines=5, placeholder="Result")],
|
31 |
title="Text Generator",
|
32 |
description="Text generation using `mistralai/Mistral-7B-Instruct-v0.1` model.",
|
33 |
+
examples=["I like ice cream", "That cat is cute"],
|
34 |
)
|
35 |
|
36 |
demo.launch()
|