Spaces:
Runtime error
Runtime error
add banner
Browse files
app.py
CHANGED
@@ -31,10 +31,12 @@ with demo:
|
|
31 |
"🌇 Image to Text",
|
32 |
],
|
33 |
value="Text Generation",
|
|
|
34 |
)
|
35 |
model_name = gr.Textbox(
|
36 |
label="Which model are you using?",
|
37 |
placeholder="google/flan-t5-xl",
|
|
|
38 |
)
|
39 |
problem_type = gr.Dropdown(
|
40 |
label="What is your current problem?",
|
@@ -45,9 +47,18 @@ with demo:
|
|
45 |
"Other"
|
46 |
],
|
47 |
value="Text Generation",
|
|
|
48 |
)
|
|
|
49 |
with gr.Column(min_width=600):
|
50 |
box = gr.Textbox()
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
if __name__ == "__main__":
|
53 |
demo.launch()
|
|
|
31 |
"🌇 Image to Text",
|
32 |
],
|
33 |
value="Text Generation",
|
34 |
+
interactive=True,
|
35 |
)
|
36 |
model_name = gr.Textbox(
|
37 |
label="Which model are you using?",
|
38 |
placeholder="google/flan-t5-xl",
|
39 |
+
interactive=True,
|
40 |
)
|
41 |
problem_type = gr.Dropdown(
|
42 |
label="What is your current problem?",
|
|
|
47 |
"Other"
|
48 |
],
|
49 |
value="Text Generation",
|
50 |
+
interactive=True,
|
51 |
)
|
52 |
+
get_suggestions = gr.Button(label="Get Suggestions!")
|
53 |
with gr.Column(min_width=600):
|
54 |
box = gr.Textbox()
|
55 |
|
56 |
+
gr.Markdown(
|
57 |
+
"""
|
58 |
+
Is your problem not on the list? Need more suggestions? Have you spotted an error? Please open a
|
59 |
+
[new discussion](https://huggingface.co/spaces/joaogante/generate_quality_improvement/discussions) 🙏
|
60 |
+
"""
|
61 |
+
)
|
62 |
+
|
63 |
if __name__ == "__main__":
|
64 |
demo.launch()
|