Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,14 +10,20 @@ def main(in_text):
|
|
10 |
return answer[0]["summary_text"]
|
11 |
|
12 |
with gr.Blocks() as demo:
|
13 |
-
gr.Markdown("""#
|
14 |
with gr.Row():
|
15 |
with gr.Column():
|
16 |
text1 = gr.Textbox(
|
17 |
-
label="
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
lines=1,
|
19 |
)
|
20 |
-
output = gr.Textbox(label="
|
21 |
b1 = gr.Button("Summarize!")
|
22 |
b1.click(main, inputs=[text1], outputs=output)
|
23 |
gr.Markdown("""#### powered by [cloudqi]""")
|
|
|
10 |
return answer[0]["summary_text"]
|
11 |
|
12 |
with gr.Blocks() as demo:
|
13 |
+
gr.Markdown("""# Teste Sumarizacao!""")
|
14 |
with gr.Row():
|
15 |
with gr.Column():
|
16 |
text1 = gr.Textbox(
|
17 |
+
label="""Hannah: Ei, você tem o número da Betty?
|
18 |
+
Amanda: Deixa eu checar
|
19 |
+
Amanda: Desculpe, não encontrei.
|
20 |
+
Amanda: Pergunte ao Larry
|
21 |
+
Amanda: Ele ligou para ela da última vez que estivemos juntos no parque
|
22 |
+
Hannah: eu não o conheço bem
|
23 |
+
""",
|
24 |
lines=1,
|
25 |
)
|
26 |
+
output = gr.Textbox(label="Resultado")
|
27 |
b1 = gr.Button("Summarize!")
|
28 |
b1.click(main, inputs=[text1], outputs=output)
|
29 |
gr.Markdown("""#### powered by [cloudqi]""")
|