Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,14 @@ def generate_wordcloud(text):
|
|
| 23 |
return image
|
| 24 |
|
| 25 |
# Create a Gradio interface
|
| 26 |
-
interface = gr.Interface(fn=generate_wordcloud,
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
interface.launch()
|
|
|
|
| 23 |
return image
|
| 24 |
|
| 25 |
# Create a Gradio interface
|
| 26 |
+
# interface = gr.Interface(fn=generate_wordcloud,
|
| 27 |
+
# inputs="text",
|
| 28 |
+
# outputs="image")
|
| 29 |
+
|
| 30 |
+
interface = gr.Interface(
|
| 31 |
+
fn=generate_wordcloud,
|
| 32 |
+
inputs=gr.inputs.Textbox(placeholder="Paste your text here", label="Your Text"), # Updated to use Textbox with placeholder
|
| 33 |
+
outputs="image"
|
| 34 |
+
)
|
| 35 |
|
| 36 |
interface.launch()
|