Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,16 +9,16 @@ drafting_examples = [
|
|
| 9 |
def greet(name):
|
| 10 |
return drafting_examples[1]
|
| 11 |
|
| 12 |
-
|
| 13 |
"huggingface/jslin09/bloom-560m-finetuned-fraud",
|
| 14 |
fn=greet,
|
| 15 |
-
title=
|
| 16 |
examples=drafting_examples,
|
| 17 |
inputs=gr.Textbox(
|
| 18 |
label="Text 1",
|
| 19 |
info="Initial text",
|
| 20 |
lines=3,
|
| 21 |
-
value=
|
| 22 |
),
|
| 23 |
outputs="text",
|
| 24 |
description="Give me something to say!",
|
|
@@ -31,7 +31,7 @@ stt_demo = gr.Interface.load(
|
|
| 31 |
description="Let me try to guess what you're saying!",
|
| 32 |
)
|
| 33 |
|
| 34 |
-
demo = gr.TabbedInterface([
|
| 35 |
|
| 36 |
if __name__ == "__main__":
|
| 37 |
demo.launch()
|
|
|
|
| 9 |
def greet(name):
|
| 10 |
return drafting_examples[1]
|
| 11 |
|
| 12 |
+
drafting_demo = gr.Interface.load(
|
| 13 |
"huggingface/jslin09/bloom-560m-finetuned-fraud",
|
| 14 |
fn=greet,
|
| 15 |
+
title=None,
|
| 16 |
examples=drafting_examples,
|
| 17 |
inputs=gr.Textbox(
|
| 18 |
label="Text 1",
|
| 19 |
info="Initial text",
|
| 20 |
lines=3,
|
| 21 |
+
value="森上梅前明知其無資力支付酒店消費,亦無付款意願,竟意圖為自己不法之所有,",
|
| 22 |
),
|
| 23 |
outputs="text",
|
| 24 |
description="Give me something to say!",
|
|
|
|
| 31 |
description="Let me try to guess what you're saying!",
|
| 32 |
)
|
| 33 |
|
| 34 |
+
demo = gr.TabbedInterface([drafting_demo, stt_demo], ["Verdicts Drafting", "Speech-to-text"])
|
| 35 |
|
| 36 |
if __name__ == "__main__":
|
| 37 |
demo.launch()
|