File size: 398 Bytes
45f40c1
 
 
 
ff73bc5
9707b6a
 
45f40c1
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
from api_function import request_hyper

with gr.Blocks() as demo:
    gr.Markdown("# 충청도 사투리 AI")
    input_text = gr.Textbox(placeholder="충청도 사투리로 바꿀 말")
    send_btn = gr.Button("충청도 사투리로 번역하기")
    ai_text = gr.Textbox("AI의 답변")

    send_btn.click(request_hyper, inputs=input_text, outputs=ai_text)

demo.launch()