ldhldh commited on
Commit
47fb575
โ€ข
1 Parent(s): cc5346d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -15
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/predict_1",
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/predict_2",
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/predict_3",
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/predict_4",
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/predict_5",
202
  )
203
 
204
  addp = gr.Interface(
205
  fn=add_transaction,
206
  inputs=["text", "text", "text"],
207
  outputs="text",
208
- description="add_transaction \n /run/predict_6",
209
  )
210
 
211
  gc = gr.Interface(
212
  fn=get_coin,
213
  inputs=["text"],
214
  outputs="text",
215
- description="get_coin, id๋กœ ์ž”์—ฌ ์ฝ”์ธ(ํ–‰๋™๋ ฅ) ๋ฐ˜ํ™˜. \n /run/predict_7",
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/predict_8",
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)