Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,68 +158,61 @@ def chat(id, npc, prompt):
|
|
| 158 |
|
| 159 |
|
| 160 |
with gr.Blocks() as demo:
|
| 161 |
-
count = 0
|
| 162 |
-
aa = gr.Interface(
|
| 163 |
-
fn=chat,
|
| 164 |
-
inputs=["text","text","text"],
|
| 165 |
-
outputs="text",
|
| 166 |
-
description="chat, ai ์๋ต์ ๋ฐํํฉ๋๋ค. ๋ด๋ถ์ ์ผ๋ก ํธ๋์ญ์
์์ฑ. \n /run/predict",
|
| 167 |
-
)
|
| 168 |
|
| 169 |
rr = gr.Interface(
|
| 170 |
fn=register,
|
| 171 |
inputs=["text", "text"],
|
| 172 |
outputs="text",
|
| 173 |
-
description="register, ํ์๊ฐ์
(์ฑ๊ณต์:ok, ์ค๋ณต์:exist ๋ฐํ)\n /run/
|
| 174 |
)
|
| 175 |
|
| 176 |
ll = gr.Interface(
|
| 177 |
fn=login,
|
| 178 |
inputs=["text", "text"],
|
| 179 |
outputs="text",
|
| 180 |
-
description="login, ๋ก๊ทธ์ธ(์ฑ๊ณต์: ok, ์คํจ์: password error, ์์ด๋๊ฐ ์์ผ๋ฉด: no id) \n /run/
|
| 181 |
)
|
| 182 |
|
| 183 |
ad = gr.Interface(
|
| 184 |
fn=add_name,
|
| 185 |
inputs=["text", "text"],
|
| 186 |
outputs="text",
|
| 187 |
-
description="add_name, id๋ก ๋๋ค์ ์ถ๊ฐ. ok ๋ฐํ.\n /run/
|
| 188 |
)
|
| 189 |
|
| 190 |
nn = gr.Interface(
|
| 191 |
fn=get_name,
|
| 192 |
inputs=["text"],
|
| 193 |
outputs="text",
|
| 194 |
-
description="get_name, id๋ก ๋๋ค์ ๋ฐํ(์์ผ๋ฉด no id)\n /run/
|
| 195 |
)
|
| 196 |
|
| 197 |
adp = gr.Interface(
|
| 198 |
fn=add_p,
|
| 199 |
inputs=["text", "text"],
|
| 200 |
outputs="text",
|
| 201 |
-
description="add_p, id๋ก p2p id ์ถ๊ฐ. ok ๋ฐํ. \n /run/
|
| 202 |
)
|
| 203 |
|
| 204 |
addp = gr.Interface(
|
| 205 |
fn=add_transaction,
|
| 206 |
inputs=["text", "text", "text"],
|
| 207 |
outputs="text",
|
| 208 |
-
description="add_transaction \n /run/
|
| 209 |
)
|
| 210 |
|
| 211 |
gc = gr.Interface(
|
| 212 |
fn=get_coin,
|
| 213 |
inputs=["text"],
|
| 214 |
outputs="text",
|
| 215 |
-
description="get_coin, id๋ก ์์ฌ ์ฝ์ธ(ํ๋๋ ฅ) ๋ฐํ. \n /run/
|
| 216 |
)
|
| 217 |
|
| 218 |
gd = gr.Interface(
|
| 219 |
fn=get_data,
|
| 220 |
inputs=[],
|
| 221 |
outputs="text",
|
| 222 |
-
description="get_data, ์๊ฐํ์ฉ ๋ชจ๋ ๋ฐ์ดํฐ ๋ฐํ. gpu๊ธฐ์ฌ ๋ชฉ๋ก, total/used, chain \n /run/
|
| 223 |
)
|
| 224 |
|
| 225 |
demo.queue(max_size=32).launch(enable_queue=True)
|
|
|
|
| 158 |
|
| 159 |
|
| 160 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
|
| 162 |
rr = gr.Interface(
|
| 163 |
fn=register,
|
| 164 |
inputs=["text", "text"],
|
| 165 |
outputs="text",
|
| 166 |
+
description="register, ํ์๊ฐ์
(์ฑ๊ณต์:ok, ์ค๋ณต์:exist ๋ฐํ)\n /run/predict",
|
| 167 |
)
|
| 168 |
|
| 169 |
ll = gr.Interface(
|
| 170 |
fn=login,
|
| 171 |
inputs=["text", "text"],
|
| 172 |
outputs="text",
|
| 173 |
+
description="login, ๋ก๊ทธ์ธ(์ฑ๊ณต์: ok, ์คํจ์: password error, ์์ด๋๊ฐ ์์ผ๋ฉด: no id) \n /run/predict_",
|
| 174 |
)
|
| 175 |
|
| 176 |
ad = gr.Interface(
|
| 177 |
fn=add_name,
|
| 178 |
inputs=["text", "text"],
|
| 179 |
outputs="text",
|
| 180 |
+
description="add_name, id๋ก ๋๋ค์ ์ถ๊ฐ. ok ๋ฐํ.\n /run/predict_2",
|
| 181 |
)
|
| 182 |
|
| 183 |
nn = gr.Interface(
|
| 184 |
fn=get_name,
|
| 185 |
inputs=["text"],
|
| 186 |
outputs="text",
|
| 187 |
+
description="get_name, id๋ก ๋๋ค์ ๋ฐํ(์์ผ๋ฉด no id)\n /run/predict_3",
|
| 188 |
)
|
| 189 |
|
| 190 |
adp = gr.Interface(
|
| 191 |
fn=add_p,
|
| 192 |
inputs=["text", "text"],
|
| 193 |
outputs="text",
|
| 194 |
+
description="add_p, id๋ก p2p id ์ถ๊ฐ. ok ๋ฐํ. \n /run/predict_4",
|
| 195 |
)
|
| 196 |
|
| 197 |
addp = gr.Interface(
|
| 198 |
fn=add_transaction,
|
| 199 |
inputs=["text", "text", "text"],
|
| 200 |
outputs="text",
|
| 201 |
+
description="add_transaction \n /run/predict_5",
|
| 202 |
)
|
| 203 |
|
| 204 |
gc = gr.Interface(
|
| 205 |
fn=get_coin,
|
| 206 |
inputs=["text"],
|
| 207 |
outputs="text",
|
| 208 |
+
description="get_coin, id๋ก ์์ฌ ์ฝ์ธ(ํ๋๋ ฅ) ๋ฐํ. \n /run/predict_6",
|
| 209 |
)
|
| 210 |
|
| 211 |
gd = gr.Interface(
|
| 212 |
fn=get_data,
|
| 213 |
inputs=[],
|
| 214 |
outputs="text",
|
| 215 |
+
description="get_data, ์๊ฐํ์ฉ ๋ชจ๋ ๋ฐ์ดํฐ ๋ฐํ. gpu๊ธฐ์ฌ ๋ชฉ๋ก, total/used, chain \n /run/predict_7",
|
| 216 |
)
|
| 217 |
|
| 218 |
demo.queue(max_size=32).launch(enable_queue=True)
|