Commit
•
fdaa910
1
Parent(s):
b27d46d
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ iface = gr.Interface(
|
|
29 |
inputs=[
|
30 |
gr.Textbox(lines=2, placeholder="Enter your prompt here...", label="Prompt"),
|
31 |
gr.Slider(minimum=10, maximum=100, value=50, label="Max Length"),
|
32 |
-
gr.Slider(minimum=0.
|
33 |
],
|
34 |
outputs=[
|
35 |
gr.Textbox(label="commentary generation from finetuned GPT2 Model"),
|
@@ -41,4 +41,4 @@ iface = gr.Interface(
|
|
41 |
|
42 |
# Launch the app
|
43 |
if __name__ == "__main__":
|
44 |
-
iface.launch(
|
|
|
29 |
inputs=[
|
30 |
gr.Textbox(lines=2, placeholder="Enter your prompt here...", label="Prompt"),
|
31 |
gr.Slider(minimum=10, maximum=100, value=50, label="Max Length"),
|
32 |
+
gr.Slider(minimum=0.01, maximum=2.0, value=0.7, label="Temperature")
|
33 |
],
|
34 |
outputs=[
|
35 |
gr.Textbox(label="commentary generation from finetuned GPT2 Model"),
|
|
|
41 |
|
42 |
# Launch the app
|
43 |
if __name__ == "__main__":
|
44 |
+
iface.launch()
|