Update Gen AI.py
Browse files
Gen AI.py
CHANGED
|
@@ -14,4 +14,10 @@ temperature_slider = gr.inputs.Slider(minimum=0.1, maximum=1.5, default=0.7, lab
|
|
| 14 |
length_slider = gr.inputs.Slider(minimum=10, maximum=200, default=50, label="Length")
|
| 15 |
seed_input = gr.inputs.Number(default=42, label="Seed")
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
length_slider = gr.inputs.Slider(minimum=10, maximum=200, default=50, label="Length")
|
| 15 |
seed_input = gr.inputs.Number(default=42, label="Seed")
|
| 16 |
|
| 17 |
+
title = "Generative AI"
|
| 18 |
+
description = "Use MiniLM to generate text based on a prompt."
|
| 19 |
+
examples = [["The quick brown fox", 50, 0.7, 42]]
|
| 20 |
+
|
| 21 |
+
iface = gr.Interface(fn=generate_text, inputs=[inputs, length_slider, temperature_slider, seed_input], outputs=outputs, title=title, description=description, examples=examples)
|
| 22 |
+
|
| 23 |
+
iface.launch(inbrowser=True, share=True)
|