Spaces:
Sleeping
Sleeping
Update app.py
Browse files157 unmodified lines158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225157 unmodified lineswith gr.Blocks() as demo:count = 0aa = gr.Interface(fn=chat,inputs=["text","text","text"],outputs="text",description="chat, ai ์๋ต์ ๋ฐํํฉ๋๋ค. ๋ด๋ถ์ ์ผ๋ก ํธ๋์ญ์ ์์ฑ. \n /run/predict",)rr = gr.Interface(fn=register,inputs=["text", "text"],outputs="text",description="register, ํ์๊ฐ์ (์ฑ๊ณต์:ok, ์ค๋ณต์:exist ๋ฐํ)\n /run/predict_1",)ll = gr.Interface(fn=login,inputs=["text", "text"],outputs="text",description="login, ๋ก๊ทธ์ธ(์ฑ๊ณต์: ok, ์คํจ์: password error, ์์ด๋๊ฐ ์์ผ๋ฉด: no id) \n /run/predict_2",)ad = gr.Interface(fn=add_name,inputs=["text", "text"],outputs="text",description="add_name, id๋ก ๋๋ค์ ์ถ๊ฐ. ok ๋ฐํ.\n /run/predict_3",)nn = gr.Interface(fn=get_name,inputs=["text"],outputs="text",description="get_name, id๋ก ๋๋ค์ ๋ฐํ(์์ผ๋ฉด no id)\n /run/predict_4",)adp = gr.Interface(fn=add_p,inputs=["text", "text"],outputs="text",description="add_p, id๋ก p2p id ์ถ๊ฐ. ok ๋ฐํ. \n /run/predict_5",)addp = gr.Interface(fn=add_transaction,inputs=["text", "text", "text"],outputs="text",description="add_transaction \n /run/predict_6",)gc = gr.Interface(fn=get_coin,inputs=["text"],outputs="text",description="get_coin, id๋ก ์์ฌ ์ฝ์ธ(ํ๋๋ ฅ) ๋ฐํ. \n /run/predict_7",)gd = gr.Interface(fn=get_data,inputs=[],outputs="text",description="get_data, ์๊ฐํ์ฉ ๋ชจ๋ ๋ฐ์ดํฐ ๋ฐํ. gpu๊ธฐ์ฌ ๋ชฉ๋ก, total/used, chain \n /run/predict_8",)demo.queue(max_size=32).launch(enable_queue=True)157 unmodified lines158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218157 unmodified lineswith gr.Blocks() as demo:rr = gr.Interface(fn=register,inputs=["text", "text"],outputs="text",description="register, ํ์๊ฐ์ (์ฑ๊ณต์:ok, ์ค๋ณต์:exist ๋ฐํ)\n /run/predict",)ll = gr.Interface(fn=login,inputs=["text", "text"],outputs="text",description="login, ๋ก๊ทธ์ธ(์ฑ๊ณต์: ok, ์คํจ์: password error, ์์ด๋๊ฐ ์์ผ๋ฉด: no id) \n /run/predict_",)ad = gr.Interface(fn=add_name,inputs=["text", "text"],outputs="text",description="add_name, id๋ก ๋๋ค์ ์ถ๊ฐ. ok ๋ฐํ.\n /run/predict_2",)nn = gr.Interface(fn=get_name,inputs=["text"],outputs="text",description="get_name, id๋ก ๋๋ค์ ๋ฐํ(์์ผ๋ฉด no id)\n /run/predict_3",)adp = gr.Interface(fn=add_p,inputs=["text", "text"],outputs="text",description="add_p, id๋ก p2p id ์ถ๊ฐ. ok ๋ฐํ. \n /run/predict_4",)addp = gr.Interface(fn=add_transaction,inputs=["text", "text", "text"],outputs="text",description="add_transaction \n /run/predict_5",)gc = gr.Interface(fn=get_coin,inputs=["text"],outputs="text",description="get_coin, id๋ก ์์ฌ ์ฝ์ธ(ํ๋๋ ฅ) ๋ฐํ. \n /run/predict_6",)gd = gr.Interface(fn=get_data,inputs=[],outputs="text",description="get_data, ์๊ฐํ์ฉ ๋ชจ๋ ๋ฐ์ดํฐ ๋ฐํ. gpu๊ธฐ์ฌ ๋ชฉ๋ก, total/used, chain \n /run/predict_7",)demo.queue(max_size=32).launch(enable_queue=True)
app.py+8-15