Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,13 @@ def generate_text(prompt, model, max_length, temperature):
|
|
| 11 |
except Exception as e:
|
| 12 |
return f"An error occurred: {str(e)}"
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
gr.Interface(
|
| 15 |
generate_text,
|
| 16 |
[
|
|
@@ -19,6 +26,8 @@ gr.Interface(
|
|
| 19 |
gr.Slider(minimum=100, maximum=650, step=50),
|
| 20 |
gr.Slider(minimum=0.1, maximum=1, step=0.1),
|
| 21 |
],
|
| 22 |
-
outputs="text"
|
|
|
|
|
|
|
| 23 |
).launch()
|
| 24 |
|
|
|
|
| 11 |
except Exception as e:
|
| 12 |
return f"An error occurred: {str(e)}"
|
| 13 |
|
| 14 |
+
title = "Enter your Prompt"
|
| 15 |
+
description = """
|
| 16 |
+
# This is multi Model Text Generating Model
|
| 17 |
+
|
| 18 |
+
"""
|
| 19 |
+
|
| 20 |
+
|
| 21 |
gr.Interface(
|
| 22 |
generate_text,
|
| 23 |
[
|
|
|
|
| 26 |
gr.Slider(minimum=100, maximum=650, step=50),
|
| 27 |
gr.Slider(minimum=0.1, maximum=1, step=0.1),
|
| 28 |
],
|
| 29 |
+
outputs="text",
|
| 30 |
+
title = title,
|
| 31 |
+
description = description
|
| 32 |
).launch()
|
| 33 |
|