Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,9 @@ def generate_random_words(num_words):
|
|
| 10 |
return ' '.join(words)
|
| 11 |
|
| 12 |
interface = gr.Interface(
|
| 13 |
-
generate_random_words,
|
| 14 |
-
'
|
| 15 |
-
|
| 16 |
-
'text',
|
| 17 |
title='Random Word Generator',
|
| 18 |
description='Generate random words of length 5-10 characters.',
|
| 19 |
layout='vertical',
|
|
|
|
| 10 |
return ' '.join(words)
|
| 11 |
|
| 12 |
interface = gr.Interface(
|
| 13 |
+
fn=generate_random_words,
|
| 14 |
+
inputs=gr.inputs.Number(default=5, label='Number of words'),
|
| 15 |
+
outputs='text',
|
|
|
|
| 16 |
title='Random Word Generator',
|
| 17 |
description='Generate random words of length 5-10 characters.',
|
| 18 |
layout='vertical',
|