Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,18 +31,19 @@ def rezuma_text(text, lungime):
|
|
| 31 |
|
| 32 |
gr.Interface(
|
| 33 |
fn=rezuma_text,
|
| 34 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
| 35 |
outputs="text",
|
| 36 |
title="SmartRezumat",
|
| 37 |
-
description="AI care transformă texte lungi în rezumate scurte, în limba română"
|
| 38 |
css="""
|
| 39 |
body { background-color: #f5f5f5; }
|
| 40 |
.gradio-container { font-family: 'Segoe UI'; }
|
| 41 |
h1, h2 { color: #2c3e50; }
|
| 42 |
.input-textbox textarea { background-color: #ffffff; border-radius: 8px; }
|
| 43 |
"""
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
).launch()
|
|
|
|
| 31 |
|
| 32 |
gr.Interface(
|
| 33 |
fn=rezuma_text,
|
| 34 |
+
inputs=[
|
| 35 |
+
gr.Textbox(label="Text de rezumat"),
|
| 36 |
+
gr.Slider(50, 300, value=150, label="Lungime maximă")
|
| 37 |
+
],
|
| 38 |
outputs="text",
|
| 39 |
title="SmartRezumat",
|
| 40 |
+
description="AI care transformă texte lungi în rezumate scurte, în limba română",
|
| 41 |
css="""
|
| 42 |
body { background-color: #f5f5f5; }
|
| 43 |
.gradio-container { font-family: 'Segoe UI'; }
|
| 44 |
h1, h2 { color: #2c3e50; }
|
| 45 |
.input-textbox textarea { background-color: #ffffff; border-radius: 8px; }
|
| 46 |
"""
|
| 47 |
+
).launch()
|
| 48 |
|
| 49 |
|
|
|
|
|
|
|
|
|