MagedSaeed
commited on
Commit
•
07a32f3
1
Parent(s):
6ec0a54
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def analyze(poem):
|
|
53 |
qafiyah = output['qafiyah'][0]
|
54 |
theme = output['theme'][-1]
|
55 |
df = get_output_df(output)
|
56 |
-
return get_highlighted_patterns_html(df), gr.Button
|
57 |
|
58 |
def generate(inputs, top_p = 3):
|
59 |
baits = inputs.split('\n')
|
@@ -92,7 +92,7 @@ def generate(inputs, top_p = 3):
|
|
92 |
else:
|
93 |
break
|
94 |
# return theme+" "+ f"من بحر {meter} مع قافية بحر ({qafiyah})" + "\n" +result
|
95 |
-
return result, gr.Button
|
96 |
|
97 |
examples = [
|
98 |
[
|
|
|
53 |
qafiyah = output['qafiyah'][0]
|
54 |
theme = output['theme'][-1]
|
55 |
df = get_output_df(output)
|
56 |
+
return get_highlighted_patterns_html(df), gr.Button(interactive=True)
|
57 |
|
58 |
def generate(inputs, top_p = 3):
|
59 |
baits = inputs.split('\n')
|
|
|
92 |
else:
|
93 |
break
|
94 |
# return theme+" "+ f"من بحر {meter} مع قافية بحر ({qafiyah})" + "\n" +result
|
95 |
+
return result, gr.Button(interactive=False)
|
96 |
|
97 |
examples = [
|
98 |
[
|