Spaces:
Runtime error
Runtime error
mvp
Browse files
app.py
CHANGED
@@ -1,7 +1,27 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(name):
|
4 |
-
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
3 |
|
4 |
+
demo = gr.Blocks()
|
5 |
+
with demo:
|
6 |
+
gr.Markdown(
|
7 |
+
"""
|
8 |
+
# 🚀💬 Improving Text Generation 💬🚀
|
9 |
+
|
10 |
+
This is a ever-evolving community-led guide on how to improve your text generation results. How to use it:
|
11 |
+
1. Answer the questions using the dropdown menus
|
12 |
+
2. Click on "Get Suggestions" buttion
|
13 |
+
3. Explore the suggestions 🤗
|
14 |
+
"""
|
15 |
+
)
|
16 |
+
|
17 |
+
with gr.Column(width=200):
|
18 |
+
with gr.Row():
|
19 |
+
task_type = gr.Dropdown(
|
20 |
+
label="Task Type",
|
21 |
+
choices=["Text Generation", "Summarization", "Translation"],
|
22 |
+
)
|
23 |
+
with gr.Column():
|
24 |
+
box = gr.Textbox()
|
25 |
+
|
26 |
+
if __name__ == "__main__":
|
27 |
+
demo.launch()
|