Spaces:
Runtime error
Runtime error
come
commited on
Commit
·
9ec45c1
1
Parent(s):
10363fa
Update app.py
Browse files
app.py
CHANGED
@@ -556,6 +556,16 @@ def gradioDemo():
|
|
556 |
gptApiKey=gr.Textbox(label='GPTAPIKey',lines=2,placeholder='输入apiKey...')
|
557 |
outputText=gr.Textbox(label='AI审核结果',lines=2,placeholder='...')
|
558 |
button1=gr.Button('开始审核')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
button1.click(JuageRewritevEffect,inputs=[text_input,textGPTinput,textGPTTargetinput,drop,slider,gptApiKey],outputs=outputText)
|
560 |
|
561 |
with gr.Tab('GPT改写效果审核_Excel'):
|
@@ -572,6 +582,7 @@ def gradioDemo():
|
|
572 |
gptApiKey = gr.Textbox(label='GPTAPIKey', lines=2, placeholder='输入apiKey')
|
573 |
|
574 |
button2 = gr.Button('开始审核')
|
|
|
575 |
with gr.Tab('GPT改写效果解析_文本'):
|
576 |
text_input = gr.Textbox(label='文本A', lines=2, placeholder='输入改写前文本...')
|
577 |
textGPTinput = gr.Textbox(label='GPT改写后文本B', lines=2, placeholder='输入GPT改写后的文本...')
|
@@ -583,21 +594,22 @@ def gradioDemo():
|
|
583 |
gptApiKey = gr.Textbox(label='GPTAPIKey', lines=2, placeholder='输入apiKey...')
|
584 |
outputText = gr.Textbox(label='AI审核结果', lines=2, placeholder='...')
|
585 |
button3 = gr.Button('开始审核')
|
586 |
-
|
587 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
|
589 |
button2.click(excelAIReviewTag, inputs=[inputs,textGPTTargetinput1,drop,slider,gptApiKey], outputs=outputs)
|
590 |
button3.click(AnalyzingSemanticChanges,inputs=[text_input,textGPTinput,drop,slider,gptApiKey],outputs=outputText)
|
591 |
|
592 |
-
|
593 |
-
gr.Markdown("## 文本例子")
|
594 |
-
gr.Examples(
|
595 |
-
[['何時に帰ってくる?', 'いつ帰ってくるのかしら?わくわく😍✨ #SimejiAI','让文本A更可爱', 'gpt-4', 0.5],['これ可愛い', 'これめっちゃ可愛いじゃん!😍💖💕 #SimejiAI', '让文本A更可爱','gpt-4', 0.5],
|
596 |
-
['無視すんな', 'やぁ、見てないよぉ〜🙈💭 #SimejiAI','让文本A更可爱', 'gpt-4', 0.5]
|
597 |
-
],
|
598 |
-
[text_input, textGPTinput, textGPTTargetinput,drop, slider], outputText,
|
599 |
-
JuageRewritevEffect,
|
600 |
-
)
|
601 |
|
602 |
demo.queue(concurrency_count=20).launch()
|
603 |
|
|
|
556 |
gptApiKey=gr.Textbox(label='GPTAPIKey',lines=2,placeholder='输入apiKey...')
|
557 |
outputText=gr.Textbox(label='AI审核结果',lines=2,placeholder='...')
|
558 |
button1=gr.Button('开始审核')
|
559 |
+
gr.Markdown("注:使用GPT4需要有gpt4权限的apiKey")
|
560 |
+
gr.Markdown("## 文本例子")
|
561 |
+
gr.Examples(
|
562 |
+
[['何時に帰ってくる?', 'いつ帰ってくるのかしら?わくわく😍✨ #SimejiAI', '让文本A更可爱', 'gpt-4', 0.5],
|
563 |
+
['これ可愛い', 'これめっちゃ可愛いじゃん!😍💖💕 #SimejiAI', '让文本A更可爱', 'gpt-4', 0.5],
|
564 |
+
['無視すんな', 'やぁ、見てないよぉ〜🙈💭 #SimejiAI', '让文本A更可爱', 'gpt-4', 0.5]
|
565 |
+
],
|
566 |
+
[text_input, textGPTinput, textGPTTargetinput, drop, slider], outputText,
|
567 |
+
JuageRewritevEffect,
|
568 |
+
)
|
569 |
button1.click(JuageRewritevEffect,inputs=[text_input,textGPTinput,textGPTTargetinput,drop,slider,gptApiKey],outputs=outputText)
|
570 |
|
571 |
with gr.Tab('GPT改写效果审核_Excel'):
|
|
|
582 |
gptApiKey = gr.Textbox(label='GPTAPIKey', lines=2, placeholder='输入apiKey')
|
583 |
|
584 |
button2 = gr.Button('开始审核')
|
585 |
+
|
586 |
with gr.Tab('GPT改写效果解析_文本'):
|
587 |
text_input = gr.Textbox(label='文本A', lines=2, placeholder='输入改写前文本...')
|
588 |
textGPTinput = gr.Textbox(label='GPT改写后文本B', lines=2, placeholder='输入GPT改写后的文本...')
|
|
|
594 |
gptApiKey = gr.Textbox(label='GPTAPIKey', lines=2, placeholder='输入apiKey...')
|
595 |
outputText = gr.Textbox(label='AI审核结果', lines=2, placeholder='...')
|
596 |
button3 = gr.Button('开始审核')
|
597 |
+
gr.Markdown("注:使用GPT4需要有gpt4权限的apiKey")
|
598 |
+
gr.Markdown("## 文本例子")
|
599 |
+
gr.Examples(
|
600 |
+
[['何時に帰ってくる?', 'いつ帰ってくるのかしら?わくわく😍✨ #SimejiAI', '让文本A更可爱', 'gpt-4', 0.5],
|
601 |
+
['これ可愛い', 'これめっちゃ可愛いじゃん!😍💖💕 #SimejiAI', '让文本A更可爱', 'gpt-4', 0.5],
|
602 |
+
['無視すんな', 'やぁ、見てないよぉ〜🙈💭 #SimejiAI', '让文本A更可爱', 'gpt-4', 0.5]
|
603 |
+
],
|
604 |
+
[text_input, textGPTinput, textGPTTargetinput, drop, slider], outputText,
|
605 |
+
JuageRewritevEffect,
|
606 |
+
)
|
607 |
+
|
608 |
|
609 |
button2.click(excelAIReviewTag, inputs=[inputs,textGPTTargetinput1,drop,slider,gptApiKey], outputs=outputs)
|
610 |
button3.click(AnalyzingSemanticChanges,inputs=[text_input,textGPTinput,drop,slider,gptApiKey],outputs=outputText)
|
611 |
|
612 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
|
614 |
demo.queue(concurrency_count=20).launch()
|
615 |
|